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_rendcache.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_rendcache.c')
-rw-r--r-- | src/test/test_rendcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index c8279fcced..e210e053b6 100644 --- a/src/test/test_rendcache.c +++ b/src/test/test_rendcache.c @@ -971,7 +971,7 @@ test_rend_cache_entry_free(void *data) // Handles non-NULL descriptor correctly e = tor_malloc_zero(sizeof(rend_cache_entry_t)); - e->desc = (char *)malloc(10); + e->desc = tor_malloc(10); rend_cache_entry_free(e); /* done: */ |