]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix memory leak in pcap_compile. 464/head
authorFedor Sakharov <[email protected]>
Fri, 4 Dec 2015 09:06:49 +0000 (12:06 +0300)
committerFedor Sakharov <[email protected]>
Fri, 4 Dec 2015 09:06:49 +0000 (12:06 +0300)
gencode.c

index 2ebf8fc7d4531b33ccd80c8d72780331042d5a71..165920e6f90840c4f494447a178fc5360f79e806 100644 (file)
--- 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 */