From: Fedor Sakharov Date: Fri, 4 Dec 2015 09:06:49 +0000 (+0300) Subject: Fix memory leak in pcap_compile. X-Git-Tag: libpcap-1.8.0-bp~109^2 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/e25ab4e2915357bcdd83efd1d077c6ad3ba3e1f3 Fix memory leak in pcap_compile. --- diff --git a/gencode.c b/gencode.c index 2ebf8fc7..165920e6 100644 --- a/gencode.c +++ b/gencode.c @@ -548,6 +548,7 @@ pcap_compile(pcap_t *p, struct bpf_program *program, program->bf_len = len; lex_cleanup(); + pcap_lex_destroy(); freechunks(); rc = 0; /* We're all okay */