use the right object when cleaning up after zunion/zinter (fixes issue 216)

This commit is contained in:
Pieter Noordhuis
2010-04-01 22:07:50 +02:00
parent 14ae26d89d
commit 8bca8773b4
2 changed files with 6 additions and 1 deletions

View File

@ -5685,7 +5685,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
addReplyLong(c, dstzset->zsl->length);
server.dirty++;
} else {
decrRefCount(dstzset);
decrRefCount(dstobj);
addReply(c, shared.czero);
}
zfree(src);