Commit 658749cc authored by WuYunlong's avatar WuYunlong Committed by antirez
Browse files

Free allocated sds in pfdebugCommand() to avoid memory leak.

parent 47988c96
...@@ -1535,6 +1535,7 @@ void pfdebugCommand(client *c) { ...@@ -1535,6 +1535,7 @@ void pfdebugCommand(client *c) {
sds decoded = sdsempty(); sds decoded = sdsempty();
if (hdr->encoding != HLL_SPARSE) { if (hdr->encoding != HLL_SPARSE) {
sdsfree(decoded);
addReplyError(c,"HLL encoding is not sparse"); addReplyError(c,"HLL encoding is not sparse");
return; return;
} }
......
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