Explorar o código

Merge branch 'bug23053_029' into maint-0.3.1

Nick Mathewson %!s(int64=7) %!d(string=hai) anos
pai
achega
911e2dc530
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 5 0
      changes/bug23053
  2. 1 0
      src/or/config.c

+ 5 - 0
changes/bug23053

@@ -0,0 +1,5 @@
+  o Minor bugfixes (memory leak):
+    - Fix a small memory leak when validating a configuration that
+      uses two or more AF_UNIX sockets for the same port type.
+      Fixes bug 23053; bugfix on 0.2.6.3-alpha. This is CID
+      1415725.

+ 1 - 0
src/or/config.c

@@ -6864,6 +6864,7 @@ parse_port_config(smartlist_t *out,
     SMARTLIST_FOREACH(elts, char *, cp, tor_free(cp));
     smartlist_clear(elts);
     tor_free(addrport);
+    tor_free(unix_socket_path);
   }
 
   if (warn_nonlocal && out) {