[tor-commits] [tor/master] Add missing check to test_address_get_if_addrs_ifaddrs. Bug 18378
nickm at torproject.org
nickm at torproject.org
Tue Feb 23 12:24:52 UTC 2016
commit b3534dfc5e85c82e915c1576a8a58500fdd7c878
Author: Nick Mathewson <nickm at torproject.org>
Date: Tue Feb 23 07:16:51 2016 -0500
Add missing check to test_address_get_if_addrs_ifaddrs. Bug 18378
---
src/test/test_address.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/test/test_address.c b/src/test/test_address.c
index 3b17b23..748dfc5 100644
--- a/src/test/test_address.c
+++ b/src/test/test_address.c
@@ -297,7 +297,9 @@ test_address_get_if_addrs_ifaddrs(void *arg)
}
done:
- SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
+ if (results) {
+ SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
+ }
smartlist_free(results);
return;
}
More information about the tor-commits
mailing list