Преглед изворни кода

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

Nick Mathewson пре 11 година
родитељ
комит
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;
   }