aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}