From e553e0f382394ea055d0b6b7637ab2534cf38146 Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Tue, 26 May 2020 10:06:28 -0700 Subject: Document allocator injection and completeness fix in test.c (#824) --- test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test.c') diff --git a/test.c b/test.c index 56ba9d6..8cc30f3 100644 --- a/test.c +++ b/test.c @@ -550,7 +550,8 @@ static void test_allocator_injection(void) { .mallocFn = hi_malloc_fail, .callocFn = hi_calloc_fail, .reallocFn = hi_realloc_fail, - .freeFn = NULL, + .strdupFn = strdup, + .freeFn = free, }; // Override hiredis allocators -- cgit v1.2.3