aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-05 11:09:59 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-05 11:09:59 -0700
commit3f508412a0919ce11723b44a87dc37876f7b7ca7 (patch)
treec1f8c844e27fa441b921777a1c9c3b27ccca71dc
parente8f6306054fb2ef0cc8595559ee843210d39562d (diff)
Free the authority string before we return.
-rw-r--r--pcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pcap.c b/pcap.c
index b79b4bce..003df0d9 100644
--- 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 /.