mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Free allocated sds in pfdebugCommand() to avoid memory leak.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user