From: Pieter Noordhuis Date: Tue, 9 Mar 2010 16:32:24 +0000 (+0100) Subject: fix: use zmalloc instead of malloc X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b9eed483aecbf19643e7c8ebb5eb204305bf0828 fix: use zmalloc instead of malloc --- diff --git a/redis.c b/redis.c index d15efbbc..48f2e415 100644 --- a/redis.c +++ b/redis.c @@ -5491,7 +5491,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { } /* read keys to be used for input */ - src = malloc(sizeof(zsetopsrc) * zsetnum); + src = zmalloc(sizeof(zsetopsrc) * zsetnum); for (i = 0, j = 3; i < zsetnum; i++, j++) { robj *zsetobj = lookupKeyWrite(c->db,c->argv[j]); if (!zsetobj) {