mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Fix a memory leak on getaddrinfo in sandbox. Found by coverity
This commit is contained in:
parent
4ea9fbcdb1
commit
1825674bd3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user