diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-31 08:30:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-31 08:30:48 -0400 |
commit | a182301152afe9cd066516ae02f588840b2efc43 (patch) | |
tree | 5bd95f2d504a62eccabee6bf3943a8e4f566e66d | |
parent | aa1ae1343a2e57dc5a7bcd045566a10175acdd10 (diff) | |
download | tor-a182301152afe9cd066516ae02f588840b2efc43.tar.gz tor-a182301152afe9cd066516ae02f588840b2efc43.zip |
Fix memory leak (#28257, CID 1440805).
-rw-r--r-- | src/feature/relay/dns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index 371c2f5069..701719af95 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -1386,6 +1386,7 @@ configured_nameserver_address(const size_t idx) NULL) == 0) { return tor_addr; } + tor_free(tor_addr); } return NULL; |