Fix (unlikely) memory leak in nb_dns.c

This commit is contained in:
Jon Siwek 2018-02-05 10:43:59 -06:00
parent 884f47a994
commit 445e5bfc18
3 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,10 @@
2.5-402 | 2018-02-05 10:43:59 -0600
* Fix (unlikely) memory leak in nb_dns.c (Corelight)
* Remove bro-plugins submodule from .gitmodules file (Daniel Thayer)
2.5-399 | 2018-01-30 14:31:45 -0800 2.5-399 | 2018-01-30 14:31:45 -0800
* Adapt the X509 analyzer to partially support OpenSSL 1.1. * Adapt the X509 analyzer to partially support OpenSSL 1.1.

View file

@ -1 +1 @@
2.5-399 2.5-402

View file

@ -166,6 +166,7 @@ nb_dns_init(char *errstr)
} }
snprintf(errstr, NB_DNS_ERRSIZE, "no valid nameservers in resolver config"); snprintf(errstr, NB_DNS_ERRSIZE, "no valid nameservers in resolver config");
free(nd);
return (NULL); return (NULL);
} }