summaryrefslogtreecommitdiff
path: root/src/replication.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-11-29 10:24:46 +0100
committerantirez <antirez@gmail.com>2016-11-29 10:25:00 +0100
commit6eb720ff2d20d3e739d6214415ca832008ba9dfb (patch)
tree87ee798b470a284a7944b20df6743ba547b8146d /src/replication.c
parentc8f0690255a0f25f27dc3573bfe7a348b85ac108 (diff)
downloadredis-6eb720ff2d20d3e739d6214415ca832008ba9dfb.tar.gz
PSYNC2: Minor memory leak reading -NOMASTERLINK master reply fixed.
Diffstat (limited to 'src/replication.c')
-rw-r--r--src/replication.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/replication.c b/src/replication.c
index f22072a06..28a37786c 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -1539,6 +1539,7 @@ int slaveTryPartialResynchronization(int fd, int read_reply) {
serverLog(LL_NOTICE,
"Master is currently unable to PSYNC "
"but should be in the future: %s", reply);
+ sdsfree(reply);
return PSYNC_TRY_LATER;
}