diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-30 14:36:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-30 14:36:31 -0400 |
commit | 2713de2a47f652f1d0637df7b9b02b6ec039a8f6 (patch) | |
tree | 7a6d68c69767eec8aed406807af090aa132f4a0a /src/test/test_policy.c | |
parent | 9a92f582191e76039b639ef29167a05563623d0c (diff) | |
download | tor-2713de2a47f652f1d0637df7b9b02b6ec039a8f6.tar.gz tor-2713de2a47f652f1d0637df7b9b02b6ec039a8f6.zip |
Fix more naked strdup/malloc/free instances
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r-- | src/test/test_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c index 913a2f303a..14182af86b 100644 --- a/src/test/test_policy.c +++ b/src/test/test_policy.c @@ -804,7 +804,7 @@ mock_get_interface_address6_list(int severity, tt_assert(template_list); SMARTLIST_FOREACH_BEGIN(template_list, tor_addr_t *, src_addr) { - tor_addr_t *dest_addr = malloc(sizeof(tor_addr_t)); + tor_addr_t *dest_addr = tor_malloc(sizeof(tor_addr_t)); memset(dest_addr, 0, sizeof(*dest_addr)); tor_addr_copy_tight(dest_addr, src_addr); smartlist_add(clone_list, dest_addr); |