]> The Tcpdump Group git mirrors - libpcap/commitdiff
Free the authority string before we return.
authorGuy Harris <[email protected]>
Tue, 5 Sep 2017 18:09:59 +0000 (11:09 -0700)
committerGuy Harris <[email protected]>
Tue, 5 Sep 2017 18:09:59 +0000 (11:09 -0700)
pcap.c

diff --git a/pcap.c b/pcap.c
index b79b4bce0c368be311d5ed79ce0a6d72e8efe699..003df0d95708507f4ed284a765892307b3e7eafd 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -1466,6 +1466,7 @@ pcap_parse_source(const char *source, char **schemep, char **userinfop,
                        port = NULL;
                }
        }
+       free(authority);
 
        /*
         * Everything else is the path.  Strip off the leading /.