redisReply: Explicitly list nil and bool cases in freeReplyObject() switch.

This commit is contained in:
Alex Smith 2020-10-15 21:08:20 -04:00 committed by michael-grunder
parent 0f92518847
commit ff73f1f9e7

View File

@ -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: