diff options
author | Alex Smith <aes7mv@virginia.edu> | 2020-10-15 21:08:20 -0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2021-02-25 21:25:17 -0800 |
commit | ff73f1f9e79625843c08ab4e4846f21dde36ee93 (patch) | |
tree | 03ba03e0024c5ebd8c08fc7cf3539f4e1a22e295 | |
parent | 0f92518847cbc7c83357a48059a273db8fe078a3 (diff) | |
download | hiredict-ff73f1f9e79625843c08ab4e4846f21dde36ee93.tar.xz |
redisReply: Explicitly list nil and bool cases in freeReplyObject() switch.
-rw-r--r-- | hiredis.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |