diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-04-21 10:54:15 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-04-21 10:54:15 +0200 |
commit | 26588f50074baf2b953468cd37405444bd4db179 (patch) | |
tree | 0707b63c9a9780ee899fbc571175f81d6b58b67c | |
parent | eaf58bd32a56adab5252f380df627a7c31d121f2 (diff) |
Test if there is a freeObject function
-rw-r--r-- | hiredis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |