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

17 Sep
2013
17 Sep
'13
2:40 a.m.
commit 1825674bd31506efe5afbf91c244919204ca5af4 Author: Nick Mathewson <nickm@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; }
4266
Age (days ago)
4266
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org