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

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