]> git.saurik.com Git - redis.git/commitdiff
memory leak removed from expire propagation code
authorantirez <antirez@gmail.com>
Mon, 2 Aug 2010 19:37:39 +0000 (21:37 +0200)
committerantirez <antirez@gmail.com>
Mon, 2 Aug 2010 19:37:39 +0000 (21:37 +0200)
src/db.c

index d8a5d0b2d64f75e475df00dcfd4371e08dc7c7f7..6ac2b0d7428ab692cefc756a2f180e5d773d4358 100644 (file)
--- 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) {