Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
26588f50
Commit
26588f50
authored
Apr 21, 2011
by
Pieter Noordhuis
Browse files
Test if there is a freeObject function
parent
eaf58bd3
Changes
1
Show whitespace changes
Inline
Side-by-side
hiredis.c
View file @
26588f50
...
...
@@ -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
);
...
...
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