Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
95fc9cc0
Commit
95fc9cc0
authored
Mar 06, 2013
by
antirez
Browse files
redis-cli: use sdsfreesplitres() instead of hand-coding it.
parent
5de5efa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
95fc9cc0
...
...
@@ -850,8 +850,7 @@ static void repl() {
}
}
/* Free the argument vector */
while
(
argc
--
)
sdsfree
(
argv
[
argc
]);
zfree
(
argv
);
sdsfreesplitres
(
argv
,
argc
);
}
/* linenoise() returns malloc-ed lines like readline() */
free
(
line
);
...
...
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