Skip to content

Commit

Permalink
memory leak removed from expire propagation code
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Aug 2, 2010
1 parent bcf2995 commit c25a5d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/db.c
Expand Up @@ -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) {
Expand Down

0 comments on commit c25a5d3

Please sign in to comment.