diff options
-rw-r--r-- | changes/bug18374 | 3 | ||||
-rw-r--r-- | src/or/config.c | 1 |
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. */ |