Free allocated sds in pfdebugCommand() to avoid memory leak.
This commit is contained in:
parent
1588f30ae2
commit
e67a3a377f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user