mirror of https://mirror.osredm.com/root/redis.git
Fixed a redis-cli bug, was using free instead of zfree call
This commit is contained in:
parent
8f63ddca00
commit
8ff6a48b99
|
@ -568,7 +568,7 @@ static void repl() {
|
||||||
/* Free the argument vector */
|
/* Free the argument vector */
|
||||||
for (j = 0; j < argc; j++)
|
for (j = 0; j < argc; j++)
|
||||||
sdsfree(argv[j]);
|
sdsfree(argv[j]);
|
||||||
free(argv);
|
zfree(argv);
|
||||||
}
|
}
|
||||||
/* linenoise() returns malloc-ed lines like readline() */
|
/* linenoise() returns malloc-ed lines like readline() */
|
||||||
free(line);
|
free(line);
|
||||||
|
|
Loading…
Reference in New Issue