From: Guy Harris Date: Sun, 21 Jan 2018 18:29:35 +0000 (-0800) Subject: In the fatal error code path, addrinfo either was never allocated or was freed. X-Git-Tag: libpcap-1.9-bp~278 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/31677aedb9ef7dea9487c136055bf6ad0aa1900e In the fatal error code path, addrinfo either was never allocated or was freed. This should fix Coverity CID 1420562. --- diff --git a/rpcapd/daemon.c b/rpcapd/daemon.c index 59a98633..e9a5dc17 100755 --- a/rpcapd/daemon.c +++ b/rpcapd/daemon.c @@ -1844,9 +1844,6 @@ fatal_error: // *sessionp = NULL; - if (addrinfo) - freeaddrinfo(addrinfo); - if (*have_thread) { #ifdef _WIN32