From: antirez Date: Sat, 5 Jun 2010 09:18:58 +0000 (+0200) Subject: Merge branch 'lists' of git://github.com/pietern/redis X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/65cc7665817dc3b8c66ade331e50f5966da598a4?ds=inline;hp=-c Merge branch 'lists' of git://github.com/pietern/redis --- 65cc7665817dc3b8c66ade331e50f5966da598a4 diff --combined redis.c index 00a5a80c,d358ba3a..44b115ea --- a/redis.c +++ b/redis.c @@@ -4191,7 -4191,6 +4191,6 @@@ static robj *rdbLoadObject(int type, FI } else { ele = tryObjectEncoding(ele); listAddNodeTail(o->ptr,ele); - incrRefCount(ele); } } } else if (type == REDIS_SET) { @@@ -5128,6 -5127,7 +5127,7 @@@ static void listTypeConvert(robj *subje if (enc == REDIS_ENCODING_LIST) { list *l = listCreate(); + listSetFreeMethod(l,decrRefCount); /* listTypeGet returns a robj with incremented refcount */ li = listTypeInitIterator(subject,0,REDIS_TAIL); @@@ -7918,7 -7918,6 +7918,7 @@@ static void discardCommand(redisClient freeClientMultiState(c); initClientMultiState(c); c->flags &= (~REDIS_MULTI); + unwatchAllKeys(c); addReply(c,shared.ok); }