Browse Source

Add a missing free in parsing an :auto port

Fixes bug 18374; bugfix on 0.2.3.3-alpha.
Nick Mathewson 8 years ago
parent
commit
bb431ad3df
2 changed files with 4 additions and 0 deletions
  1. 3 0
      changes/bug18374
  2. 1 0
      src/or/config.c

+ 3 - 0
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.

+ 1 - 0
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. */