Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d6a13f44
"vscode:/vscode.git/clone" did not exist on "3dc84c530063e2ebd4f975e4066dd834cd6cbe9f"
Commit
d6a13f44
authored
Jan 07, 2020
by
WuYunlong
Browse files
Free allocated sds in pfdebugCommand() to avoid memory leak.
parent
9387f733
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
d6a13f44
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment