diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -550,10 +550,11 @@ static void *hi_realloc_fail(void *ptr, size_t size) { static void test_allocator_injection(void) { hiredisAllocFuncs ha = { - .malloc = hi_malloc_fail, - .calloc = hi_calloc_fail, - .realloc = hi_realloc_fail, - .free = NULL, + .mallocFn = hi_malloc_fail, + .callocFn = hi_calloc_fail, + .reallocFn = hi_realloc_fail, + .strdupFn = strdup, + .freeFn = free, }; // Override hiredis allocators |