Fixing potential leak in DNS error case. From Vlad.

Closes #967.
This commit is contained in:
Robin Sommer 2013-03-17 17:35:16 -07:00
parent c180d04db9
commit c39223e226
3 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,8 @@
2.1-377 | 2013-03-17 17:36:09 -0700
* Fixing potential leak in DNS error case. (Vlad Grigorescu)
2.1-375 | 2013-03-17 13:14:26 -0700
* Add base64 encoding functionality, including new BiFs

View file

@ -1 +1 @@
2.1-375
2.1-377

View file

@ -265,6 +265,7 @@ _nb_dns_mkquery(register struct nb_dns_info *nd, register const char *name,
default:
snprintf(errstr, NB_DNS_ERRSIZE,
"_nb_dns_mkquery: bad family %d", atype);
free(ne);
return (-1);
}