mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Fix (unlikely) memory leak in nb_dns.c
This commit is contained in:
parent
884f47a994
commit
445e5bfc18
3 changed files with 8 additions and 1 deletions
|
@ -166,6 +166,7 @@ nb_dns_init(char *errstr)
|
|||
}
|
||||
|
||||
snprintf(errstr, NB_DNS_ERRSIZE, "no valid nameservers in resolver config");
|
||||
free(nd);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue