diff options
author | antirez <antirez@gmail.com> | 2010-08-02 21:37:39 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-08-02 21:37:39 +0200 |
commit | c25a5d3b1062f3398a96a76ecd27c6f3a77a446e (patch) | |
tree | 71067fc225d5ffb70fd00aad038923a35c6da9a6 | |
parent | bcf2995c987acea7f5485ec0e3717a29a7e98457 (diff) | |
download | redis-c25a5d3b1062f3398a96a76ecd27c6f3a77a446e.tar.gz |
memory leak removed from expire propagation code
-rw-r--r-- | src/db.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |