[tor-commits] [tor/master] Fix a memory leak on getaddrinfo in sandbox. Found by coverity
nickm at torproject.org
nickm at torproject.org
Tue Sep 17 02:40:40 UTC 2013
commit 1825674bd31506efe5afbf91c244919204ca5af4
Author: Nick Mathewson <nickm at torproject.org>
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;
}
More information about the tor-commits
mailing list