From 2713de2a47f652f1d0637df7b9b02b6ec039a8f6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 30 Jun 2016 14:36:31 -0400 Subject: Fix more naked strdup/malloc/free instances --- src/test/test_rendcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/test_rendcache.c') 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: */ -- cgit v1.2.3-54-g00ecf