]> The Tcpdump Group git mirrors - libpcap/commitdiff
Plug another leak.
authorGuy Harris <[email protected]>
Sat, 7 Oct 2017 23:16:37 +0000 (16:16 -0700)
committerGuy Harris <[email protected]>
Sat, 7 Oct 2017 23:16:37 +0000 (16:16 -0700)
Fixes Coverity CID 1418990.

pcap.c

diff --git a/pcap.c b/pcap.c
index 6feb71586ba6d7e893daec6d3d8aeea77b5d3592..8b7d21f0cc528b94d78318dc902120eda59233e0 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -1880,6 +1880,7 @@ pcap_parsesrcstr(const char *source, int *type, char *host, char *port,
        if (type)
                *type = PCAP_SRC_IFLOCAL;
        free(tmppath);
+       free(tmpport);
        free(tmphost);
        free(tmpuserinfo);
        free(scheme);