]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Robert Edmonds: free the string that contains the filter as soon as
authorGuy Harris <[email protected]>
Sat, 18 Apr 2009 21:34:47 +0000 (14:34 -0700)
committerGuy Harris <[email protected]>
Sat, 18 Apr 2009 21:34:47 +0000 (14:34 -0700)
we're done with it.

CREDITS
tcpdump.c

diff --git a/CREDITS b/CREDITS
index fa62fe3e45df80a0119cd3b3578df7eb487b3a01..fb9065e32a8d0c91a988e8e1dbcec139c1f07082 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -144,6 +144,7 @@ Additional people who have contributed patches:
        Rick Jones                      <rick dot jones2 at hp dot com>
        Rick Watson                     <watsonrick at users dot sourceforge dot net>
        Rob Braun                       <bbraun at synack dot net>
+       Robert Edmonds                  <stu-42 at sourceforge dot net>
        Roderick Schertler              <roderick at argon dot org>
        Sagun Shakya                    <sagun dot shakya at sun dot com>
        Sami Farin                      <safari at iki dot fi>
index 18914d4b6638488f09b625f1b153eb9a36144084..9c418f38a2085664304c95d3e3d03a5dd991e0d9 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1082,6 +1082,7 @@ main(int argc, char **argv)
 
        if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
                error("%s", pcap_geterr(pd));
+       free(cmdbuf);
        if (dflag) {
                bpf_dump(&fcode, dflag);
                pcap_close(pd);