Browse Source

Fix a memory leak on getaddrinfo in sandbox. Found by coverity

Nick Mathewson 11 years ago
parent
commit
1825674bd3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common/sandbox.c

+ 1 - 0
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;
   }