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
cab99f64
Commit
cab99f64
authored
Sep 25, 2010
by
Pieter Noordhuis
Browse files
Free command before returning
parent
bc3ec0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
cab99f64
...
...
@@ -760,6 +760,7 @@ void *redisCommand(redisContext *c, const char *format, ...) {
if
(
c
->
flags
&
REDIS_BLOCK
)
{
if
(
redisCommandWriteBlock
(
c
,
&
reply
,
cmd
,
sdslen
(
cmd
))
==
REDIS_OK
)
{
sdsfree
(
cmd
);
return
reply
;
}
}
else
{
...
...
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