Commit d6a13f44 authored by WuYunlong's avatar WuYunlong
Browse files

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

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