Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
ff73f1f9
Commit
ff73f1f9
authored
Oct 15, 2020
by
Alex Smith
Committed by
michael-grunder
Feb 25, 2021
Browse files
redisReply: Explicitly list nil and bool cases in freeReplyObject() switch.
parent
0f925188
Changes
1
Show whitespace changes
Inline
Side-by-side
hiredis.c
View file @
ff73f1f9
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment