diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-01-28 12:13:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 12:13:05 -0800 |
commit | 669ac9d0c843f9ccf07d4969ff6bff75fafee01f (patch) | |
tree | 6075cb357e13342f6844dc9891d6c3c38c8e6f86 /adapters/ivykis.h | |
parent | 0501c623c91344e54cb2775a91509650960789b1 (diff) |
Safe allocation wrappers (#754)
Create allocation wrappers with a configurable OOM handler (defaults to abort()).
See #752, #747
Diffstat (limited to 'adapters/ivykis.h')
-rw-r--r-- | adapters/ivykis.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/ivykis.h b/adapters/ivykis.h index 6a12a86..75616ee 100644 --- a/adapters/ivykis.h +++ b/adapters/ivykis.h @@ -55,7 +55,7 @@ static int redisIvykisAttach(redisAsyncContext *ac) { return REDIS_ERR; /* Create container for context and r/w events */ - e = (redisIvykisEvents*)malloc(sizeof(*e)); + e = (redisIvykisEvents*)hi_malloc(sizeof(*e)); e->context = ac; /* Register functions to start/stop listening for events */ |