]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a small memory leak when parsing unix: ports twice
authorNick Mathewson <nickm@torproject.org>
Fri, 28 Jul 2017 13:49:42 +0000 (09:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 28 Jul 2017 13:49:42 +0000 (09:49 -0400)
Fixes bug 23053; CID 1415725.

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

diff --git a/changes/bug23053 b/changes/bug23053
new file mode 100644 (file)
index 0000000..082e239
--- /dev/null
@@ -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.
index 3693cdf83c3b996bb76466901f85d3c8a73f7715..d5298f0eb8727ea7b072c0b6ebb502a00cdcf518 100644 (file)
@@ -6877,6 +6877,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) {