From ff73f1f9e79625843c08ab4e4846f21dde36ee93 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Thu, 15 Oct 2020 21:08:20 -0400 Subject: redisReply: Explicitly list nil and bool cases in freeReplyObject() switch. --- hiredis.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hiredis.c b/hiredis.c index 5b7a1b8..2dadf15 100644 --- a/hiredis.c +++ b/hiredis.c @@ -96,6 +96,8 @@ void freeReplyObject(void *reply) { switch(r->type) { case REDIS_REPLY_INTEGER: + case REDIS_REPLY_NIL: + case REDIS_REPLY_BOOL: break; /* Nothing to free */ case REDIS_REPLY_ARRAY: case REDIS_REPLY_MAP: -- cgit v1.2.3