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

This commit is contained in:
WuYunlong
2020-01-07 11:17:52 +08:00
committed by antirez
parent 47988c9666
commit 658749cc54

View File

@@ -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;
}