Skip to content

Commit c3e6473

Browse files
author
DvirDukhan
committed
valgrind leak
1 parent ac14556 commit c3e6473

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/execution/execution_contexts/scriptRun_ctx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ void RAI_ScriptRunCtxFree(RAI_ScriptRunCtx *sctx) {
7575
for (size_t i = 0; i < array_len(sctx->args); ++i) {
7676
RedisModule_FreeString(NULL, sctx->args[i]);
7777
}
78+
array_free(sctx->args);
7879

7980
for (size_t i = 0; i < array_len(sctx->keys); ++i) {
8081
RedisModule_FreeString(NULL, sctx->keys[i]);
8182
}
8283

84+
array_free(sctx->keys);
85+
8386
RedisModule_Free(sctx->fnname);
8487

8588
RAI_Error err = {0};

0 commit comments

Comments
 (0)