Free memory in clusterLoadConfig error handler

Closes #1327
This commit is contained in:
SungBin_Hong 2013-10-15 00:12:06 +09:00 committed by antirez
parent e60125fde8
commit 9a8653e1e1

View File

@ -284,6 +284,7 @@ int clusterLoadConfig(char *filename) {
fmterr:
redisLog(REDIS_WARNING,
"Unrecoverable error: corrupted cluster config file.");
zfree(line);
fclose(fp);
exit(1);
}