summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.c b/test.c
index fba8eba..2aef0d5 100644
--- a/test.c
+++ b/test.c
@@ -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