]> The Tcpdump Group git mirrors - libpcap/commit
Plug memory leaks from pcap_nametoaddrinfo() w/o INET6.
authorDenis Ovsienko <[email protected]>
Thu, 17 Apr 2025 13:26:51 +0000 (14:26 +0100)
committerDenis Ovsienko <[email protected]>
Tue, 22 Apr 2025 20:09:53 +0000 (21:09 +0100)
commit5204c1b30b42f56921cc0313d1c6b9577f3916ff
treeb98c4ebcf9f7697c223a33252ec7d10dc4eaa92b
parent8f99c57221636f18f73ac026c9f9f7a9c9594dce
Plug memory leaks from pcap_nametoaddrinfo() w/o INET6.

struct _compiler_state includes the member ai regardless of INET6;
gen_scode() assigns it in two instances regardless of INET6 and in one
instance if INET6 is not defined.  Therefore the initialization and the
conditional memory deallocation should not be specific to INET6.
gencode.c