redisReply: Explicitly list nil and bool cases in freeReplyObject() switch.
This commit is contained in:
parent
0f92518847
commit
ff73f1f9e7
@ -96,6 +96,8 @@ void freeReplyObject(void *reply) {
|
|||||||
|
|
||||||
switch(r->type) {
|
switch(r->type) {
|
||||||
case REDIS_REPLY_INTEGER:
|
case REDIS_REPLY_INTEGER:
|
||||||
|
case REDIS_REPLY_NIL:
|
||||||
|
case REDIS_REPLY_BOOL:
|
||||||
break; /* Nothing to free */
|
break; /* Nothing to free */
|
||||||
case REDIS_REPLY_ARRAY:
|
case REDIS_REPLY_ARRAY:
|
||||||
case REDIS_REPLY_MAP:
|
case REDIS_REPLY_MAP:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user