Commit 6eb720ff authored by antirez's avatar antirez
Browse files

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

parent c8f06902
...@@ -1539,6 +1539,7 @@ int slaveTryPartialResynchronization(int fd, int read_reply) { ...@@ -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;
} }
......
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