瀏覽代碼

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

Nick Mathewson 12 年之前
父節點
當前提交
1825674bd3
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
   }