]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing free in parsing an :auto port
authorNick Mathewson <nickm@torproject.org>
Mon, 22 Feb 2016 20:51:43 +0000 (15:51 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 22 Feb 2016 20:51:43 +0000 (15:51 -0500)
Fixes bug 18374; bugfix on 0.2.3.3-alpha.

changes/bug18374 [new file with mode: 0644]
src/or/config.c

diff --git a/changes/bug18374 b/changes/bug18374
new file mode 100644 (file)
index 0000000..4764c53
--- /dev/null
@@ -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.
index 5273d5ade7dba7e86333eca32d3ecf024ea1603d..ba02e9f18015f3671d16521b8681c31e9b08ca58 100644 (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. */