aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-28 09:49:42 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-28 09:49:42 -0400
commit9a0f38a349293f188a81b86d5b7639175a1cf334 (patch)
tree5fda83a69ee6a34db87ecb7d7dc2ab0097a92df0 /src/or/config.c
parent24ddf5862e8582a903860a8fe4a1b4a63153f40f (diff)
downloadtor-9a0f38a349293f188a81b86d5b7639175a1cf334.tar.gz
tor-9a0f38a349293f188a81b86d5b7639175a1cf334.zip
Fix a small memory leak when parsing unix: ports twice
Fixes bug 23053; CID 1415725.
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 3693cdf83c..d5298f0eb8 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -6877,6 +6877,7 @@ parse_port_config(smartlist_t *out,
SMARTLIST_FOREACH(elts, char *, cp, tor_free(cp));
smartlist_clear(elts);
tor_free(addrport);
+ tor_free(unix_socket_path);
}
if (warn_nonlocal && out) {