diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-21 08:17:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-21 08:17:30 -0400 |
commit | d478704de889dfc41a72af1187dc52e465ea0cdc (patch) | |
tree | 847182ad7d39e296485beb0b441280fe665a3e77 /src/test/test_address.c | |
parent | d939a83f5bc8ccf3760f61f25afb079097b47ea2 (diff) | |
download | tor-d478704de889dfc41a72af1187dc52e465ea0cdc.tar.gz tor-d478704de889dfc41a72af1187dc52e465ea0cdc.zip |
Fix a number of unit-test memory leaks, found by valgrind.
Diffstat (limited to 'src/test/test_address.c')
-rw-r--r-- | src/test/test_address.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_address.c b/src/test/test_address.c index 7ffdcfee70..7368b05035 100644 --- a/src/test/test_address.c +++ b/src/test/test_address.c @@ -955,7 +955,7 @@ test_address_tor_addr_to_in6(void *ignored) tt_mem_op(res->s6_addr, OP_EQ, expected, 16); done: - (void)0; + tor_free(a); } static void @@ -976,7 +976,7 @@ test_address_tor_addr_to_in(void *ignored) tt_int_op(res->s_addr, OP_EQ, 44); done: - (void)0; + tor_free(a); } static void @@ -997,7 +997,7 @@ test_address_tor_addr_to_ipv4n(void *ignored) tt_int_op(res, OP_EQ, 43); done: - (void)0; + tor_free(a); } static void @@ -1020,7 +1020,7 @@ test_address_tor_addr_to_mapped_ipv4h(void *ignored) tt_int_op(res, OP_EQ, 42); done: - (void)0; + tor_free(a); } static void @@ -1044,7 +1044,7 @@ test_address_tor_addr_eq_ipv4h(void *ignored) tt_assert(res); done: - (void)0; + tor_free(a); } #define ADDRESS_TEST(name, flags) \ |