Fix memory leak (#28257, CID 1440805).

This commit is contained in:
Nick Mathewson 2018-10-31 08:30:48 -04:00
parent aa1ae1343a
commit a182301152

View File

@ -1386,6 +1386,7 @@ configured_nameserver_address(const size_t idx)
NULL) == 0) { NULL) == 0) {
return tor_addr; return tor_addr;
} }
tor_free(tor_addr);
} }
return NULL; return NULL;