Add a missing free in parsing an :auto port

Fixes bug 18374; bugfix on 0.2.3.3-alpha.
This commit is contained in:
Nick Mathewson
2016-02-22 15:51:43 -05:00
parent ef42c00cf0
commit bb431ad3df
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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.
+1
View File
@@ -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. */