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
db6a2e7f
Commit
db6a2e7f
authored
Oct 28, 2011
by
antirez
Browse files
Fixed a memory leak in redis-cli.c
parent
e1cf460c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
db6a2e7f
...
@@ -716,6 +716,7 @@ static void repl() {
...
@@ -716,6 +716,7 @@ static void repl() {
if
(
argv
==
NULL
)
{
if
(
argv
==
NULL
)
{
printf
(
"Invalid argument(s)
\n
"
);
printf
(
"Invalid argument(s)
\n
"
);
free
(
line
);
continue
;
continue
;
}
else
if
(
argc
>
0
)
{
}
else
if
(
argc
>
0
)
{
if
(
strcasecmp
(
argv
[
0
],
"quit"
)
==
0
||
if
(
strcasecmp
(
argv
[
0
],
"quit"
)
==
0
||
...
...
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