Commit 95fc9cc0 authored by antirez's avatar antirez
Browse files

redis-cli: use sdsfreesplitres() instead of hand-coding it.

parent 5de5efa3
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment