summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-08-02 21:37:39 +0200
committerantirez <antirez@gmail.com>2010-08-02 21:37:39 +0200
commitc25a5d3b1062f3398a96a76ecd27c6f3a77a446e (patch)
tree71067fc225d5ffb70fd00aad038923a35c6da9a6
parentbcf2995c987acea7f5485ec0e3717a29a7e98457 (diff)
downloadredis-c25a5d3b1062f3398a96a76ecd27c6f3a77a446e.tar.gz
memory leak removed from expire propagation code
-rw-r--r--src/db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db.c b/src/db.c
index d8a5d0b2d..6ac2b0d74 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) {