Commit b9eed483 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

fix: use zmalloc instead of malloc

parent c1d57a10
...@@ -5491,7 +5491,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { ...@@ -5491,7 +5491,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
} }
/* read keys to be used for input */ /* 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++) { for (i = 0, j = 3; i < zsetnum; i++, j++) {
robj *zsetobj = lookupKeyWrite(c->db,c->argv[j]); robj *zsetobj = lookupKeyWrite(c->db,c->argv[j]);
if (!zsetobj) { if (!zsetobj) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment