PSYNC2: Minor memory leak reading -NOMASTERLINK master reply fixed.

This commit is contained in:
antirez 2016-11-29 10:24:46 +01:00
parent c8f0690255
commit 6eb720ff2d

View File

@ -1539,6 +1539,7 @@ int slaveTryPartialResynchronization(int fd, int read_reply) {
serverLog(LL_NOTICE, serverLog(LL_NOTICE,
"Master is currently unable to PSYNC " "Master is currently unable to PSYNC "
"but should be in the future: %s", reply); "but should be in the future: %s", reply);
sdsfree(reply);
return PSYNC_TRY_LATER; return PSYNC_TRY_LATER;
} }