Commit cab99f64 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Free command before returning

parent bc3ec0f3
......@@ -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 {
......
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