Commit 26588f50 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Test if there is a freeObject function

parent eaf58bd3
......@@ -585,7 +585,7 @@ void *redisReplyReaderGetObject(void *reader) {
void redisReplyReaderFree(void *reader) {
redisReader *r = reader;
if (r->reply != NULL && r->fn)
if (r->reply != NULL && r->fn && r->fn->freeObject)
r->fn->freeObject(r->reply);
if (r->buf != NULL)
sdsfree(r->buf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment