diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-16 22:38:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-09-16 22:38:02 -0400 |
commit | 1825674bd31506efe5afbf91c244919204ca5af4 (patch) | |
tree | 36e10e023459e6ec402867ed7f1274884aa357bd | |
parent | 4ea9fbcdb1feccb3e54ec83b201465252752f046 (diff) | |
download | tor-1825674bd31506efe5afbf91c244919204ca5af4.tar tor-1825674bd31506efe5afbf91c244919204ca5af4.tar.gz |
Fix a memory leak on getaddrinfo in sandbox. Found by coverity
-rw-r--r-- | src/common/sandbox.c | 1 |
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; } |