aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-22 15:51:43 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-22 15:51:43 -0500
commitbb431ad3dfae6941a0bd615b17283ca8c0a5fe4d (patch)
tree461bf07e2e7b56f165686789339c633dd1934257
parentef42c00cf0b3a10673a80dd8cf98c683fb68a33e (diff)
downloadtor-bb431ad3dfae6941a0bd615b17283ca8c0a5fe4d.tar.gz
tor-bb431ad3dfae6941a0bd615b17283ca8c0a5fe4d.zip
Add a missing free in parsing an :auto port
Fixes bug 18374; bugfix on 0.2.3.3-alpha.
-rw-r--r--changes/bug183743
-rw-r--r--src/or/config.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug18374 b/changes/bug18374
new file mode 100644
index 0000000000..4764c53f56
--- /dev/null
+++ b/changes/bug18374
@@ -0,0 +1,3 @@
+ o Minor bugfixes (configuration):
+ - Fix a tiny memory leak when parsing a port configuration ending in
+ ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
diff --git a/src/or/config.c b/src/or/config.c
index 5273d5ade7..ba02e9f180 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -6373,6 +6373,7 @@ parse_port_config(smartlist_t *out,
tor_free(addrtmp);
goto err;
}
+ tor_free(addrtmp);
} else {
/* Try parsing integer port before address, because, who knows?
"9050" might be a valid address. */