From: antirez Date: Mon, 2 Aug 2010 19:37:39 +0000 (+0200) Subject: memory leak removed from expire propagation code X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/c25a5d3b1062f3398a96a76ecd27c6f3a77a446e memory leak removed from expire propagation code --- diff --git a/src/db.c b/src/db.c index d8a5d0b2..6ac2b0d7 100644 --- a/src/db.c +++ b/src/db.c @@ -450,7 +450,8 @@ void propagateExpire(redisDb *db, robj *key) { if (listLength(server.slaves)) replicationFeedSlaves(server.slaves,db->id,argv,2); - decrRefCount(key); + decrRefCount(argv[0]); + decrRefCount(argv[1]); } int expireIfNeeded(redisDb *db, robj *key) {