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

[tor-commits] [tor/master] Fix a memory leak on getaddrinfo in sandbox. Found by coverity



commit 1825674bd31506efe5afbf91c244919204ca5af4
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Sep 16 22:38:02 2013 -0400

    Fix a memory leak on getaddrinfo in sandbox. Found by coverity
---
 src/common/sandbox.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index ddfa84b..aaba9c7 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -1184,6 +1184,7 @@ sandbox_add_addrinfo(const char* name)
   if (ret) {
     log_err(LD_BUG,"(Sandbox) failed to getaddrinfo");
     ret = -2;
+    tor_free(el);
     goto out;
   }
 

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