summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-05-26 10:06:28 -0700
committerGitHub <noreply@github.com>2020-05-26 10:06:28 -0700
commite553e0f382394ea055d0b6b7637ab2534cf38146 (patch)
tree07d7a1945dbf045dfd09b00cec74ce7112096fe6 /test.c
parentf5d258504333d5598428853b7293e26814f65acf (diff)
Document allocator injection and completeness fix in test.c (#824)
Diffstat (limited to 'test.c')
-rw-r--r--test.c3
1 files changed, 2 insertions, 1 deletions
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