Skip to content

Commit 71b49d2

Browse files
committed
Patch an error caused by the valgrind fix in dag parsing error.
1 parent c78efe4 commit 71b49d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/execution/parsing/dag_parser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ int ParseDAGExecuteCommand(RedisAI_RunInfo *rinfo, RedisModuleCtx *ctx, RedisMod
368368
for (size_t i = 0; i < array_len(dag_ops); i++) {
369369
RAI_FreeDagOp(dag_ops[i]);
370370
}
371+
// For the case that error was raised after the ops were inserted to the run info.
372+
array_clear(rinfo->dagOps);
371373
array_free(dag_ops);
372374
return REDISMODULE_ERR;
373375
}

0 commit comments

Comments
 (0)