summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorAlex Smith <aes7mv@virginia.edu>2020-10-15 21:08:20 -0400
committermichael-grunder <michael.grunder@gmail.com>2021-02-25 21:25:17 -0800
commitff73f1f9e79625843c08ab4e4846f21dde36ee93 (patch)
tree03ba03e0024c5ebd8c08fc7cf3539f4e1a22e295 /hiredis.c
parent0f92518847cbc7c83357a48059a273db8fe078a3 (diff)
redisReply: Explicitly list nil and bool cases in freeReplyObject() switch.
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c2
1 files changed, 2 insertions, 0 deletions
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: