CID 1440805: Memory leak in configured_nameserver_address() due to #21900
** CID 1440805: Resource leaks (RESOURCE_LEAK)
/src/feature/relay/dns.c: 1389 in configured_nameserver_address()
________________________________________________________________________________________________________
*** CID 1440805: Resource leaks (RESOURCE_LEAK)
/src/feature/relay/dns.c: 1389 in configured_nameserver_address()
1383 tor_addr_t *tor_addr = tor_malloc(sizeof(tor_addr_t));
1384 if (tor_addr_from_sockaddr(tor_addr,
1385 (const struct sockaddr *)&sa,
1386 NULL) == 0) {
1387 return tor_addr;
1388 }
CID 1440805: Resource leaks (RESOURCE_LEAK)
Variable "tor_addr" going out of scope leaks the storage it points to.
1389 }
1390
1391 return NULL;
1392 }
1393 #endif