Skip to content

Commit f7b870e

Browse files
author
DvirDukhan
committed
fixed valgrind
1 parent 7b57f13 commit f7b870e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/execution/parsing/deprecated.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,13 +412,12 @@ static int _ScriptRunCommand_ParseArgs(RedisModuleCtx *ctx, RedisModuleString **
412412
continue;
413413
}
414414
// Parse argument name
415-
RAI_HoldString(argv[argpos]);
416415
if (is_input) {
417416
ninputs++;
418-
*inkeys = array_append(*inkeys, argv[argpos]);
417+
*inkeys = array_append(*inkeys, RAI_HoldString(argv[argpos]));
419418
} else if (is_output) {
420419
noutputs++;
421-
*outkeys = array_append(*outkeys, argv[argpos]);
420+
*outkeys = array_append(*outkeys, RAI_HoldString(argv[argpos]));
422421
} else {
423422
RAI_SetError(error, RAI_ESCRIPTRUN, "ERR Unrecongnized parameter to SCRIPTRUN");
424423
return REDISMODULE_ERR;

0 commit comments

Comments
 (0)