[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.3.1] Fix a small memory leak when parsing unix: ports twice



commit 9a0f38a349293f188a81b86d5b7639175a1cf334
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Jul 28 09:49:42 2017 -0400

    Fix a small memory leak when parsing unix: ports twice
    
    Fixes bug 23053; CID 1415725.
---
 changes/bug23053 | 5 +++++
 src/or/config.c  | 1 +
 2 files changed, 6 insertions(+)

diff --git a/changes/bug23053 b/changes/bug23053
new file mode 100644
index 000000000..082e23940
--- /dev/null
+++ b/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.
diff --git a/src/or/config.c b/src/or/config.c
index 3693cdf83..d5298f0eb 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits