aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-16 22:38:02 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-16 22:38:02 -0400
commit1825674bd31506efe5afbf91c244919204ca5af4 (patch)
tree36e10e023459e6ec402867ed7f1274884aa357bd
parent4ea9fbcdb1feccb3e54ec83b201465252752f046 (diff)
downloadtor-1825674bd31506efe5afbf91c244919204ca5af4.tar
tor-1825674bd31506efe5afbf91c244919204ca5af4.tar.gz
Fix a memory leak on getaddrinfo in sandbox. Found by coverity
-rw-r--r--src/common/sandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index ddfa84b6f..aaba9c776 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;
}