[tor-commits] [tor/master] Add a missing free in parsing an :auto port
nickm at torproject.org
nickm at torproject.org
Mon Feb 22 20:52:26 UTC 2016
commit bb431ad3dfae6941a0bd615b17283ca8c0a5fe4d
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon Feb 22 15:51:43 2016 -0500
Add a missing free in parsing an :auto port
Fixes bug 18374; bugfix on 0.2.3.3-alpha.
---
changes/bug18374 | 3 +++
src/or/config.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/changes/bug18374 b/changes/bug18374
new file mode 100644
index 0000000..4764c53
--- /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 5273d5a..ba02e9f 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. */
More information about the tor-commits
mailing list