From: Nick Mathewson Date: Mon, 22 Feb 2016 20:51:43 +0000 (-0500) Subject: Add a missing free in parsing an :auto port X-Git-Tag: tor-0.2.8.2-alpha~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb431ad3dfae6941a0bd615b17283ca8c0a5fe4d;p=thirdparty%2Ftor.git Add a missing free in parsing an :auto port Fixes bug 18374; bugfix on 0.2.3.3-alpha. --- 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. */