diff options
author | Matt Stancliff <matt@genges.com> | 2015-01-15 14:20:59 -0500 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-01-21 18:47:16 +0100 |
commit | 051a43e03a4db665b3bf6e8b45790298c86a96af (patch) | |
tree | 498bc217d5c7ec596d0e6e86ea1a4ab7dcec3f98 /src/cluster.c | |
parent | 29049507ec34efd59ce6de7cff524fb44b47f934 (diff) | |
download | redis-051a43e03a4db665b3bf6e8b45790298c86a96af.tar.gz |
Fix cluster migrate memory leak
Fixes valgrind error:
48 bytes in 1 blocks are definitely lost in loss record 196 of 373
at 0x4910D3: je_malloc (jemalloc.c:944)
by 0x42807D: zmalloc (zmalloc.c:125)
by 0x41FA0D: dictGetIterator (dict.c:543)
by 0x41FA48: dictGetSafeIterator (dict.c:555)
by 0x459B73: clusterHandleSlaveMigration (cluster.c:2776)
by 0x45BF27: clusterCron (cluster.c:3123)
by 0x423344: serverCron (redis.c:1239)
by 0x41D6CD: aeProcessEvents (ae.c:311)
by 0x41D8EA: aeMain (ae.c:455)
by 0x41A84B: main (redis.c:3832)
Diffstat (limited to 'src/cluster.c')
-rw-r--r-- | src/cluster.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cluster.c b/src/cluster.c index ba84b3a91..3381d98c8 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2803,6 +2803,7 @@ void clusterHandleSlaveMigration(int max_slaves) { } } } + dictReleaseIterator(di); /* Step 4: perform the migration if there is a target, and if I'm the * candidate. */ |