Commit 987127c6 authored by SungBin_Hong's avatar SungBin_Hong Committed by antirez
Browse files

Free memory in clusterLoadConfig error handler

Closes #1327
parent 194b0525
...@@ -284,6 +284,7 @@ int clusterLoadConfig(char *filename) { ...@@ -284,6 +284,7 @@ int clusterLoadConfig(char *filename) {
fmterr: fmterr:
redisLog(REDIS_WARNING, redisLog(REDIS_WARNING,
"Unrecoverable error: corrupted cluster config file."); "Unrecoverable error: corrupted cluster config file.");
zfree(line);
fclose(fp); fclose(fp);
exit(1); exit(1);
} }
......
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