diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-03-27 19:21:37 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-03-27 19:21:37 +0330 |
commit | 8a1016425aba995a391271666b3ae8a29c2dd3f3 (patch) | |
tree | c637d88f6f66d9e71ead1a7d51112ee208e2abe7 /src/runner | |
parent | ef3346297dc292ea2f2b25368cd671136c529415 (diff) |
fix memory leak
Diffstat (limited to 'src/runner')
-rw-r--r-- | src/runner/runner.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c index 7d36b67..2c38f74 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -192,6 +192,7 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet) { UNREACHABLE; } left = var->metadata; + astTreeDelete(var); } runnerVariableSetValue(left, runExpression(&metadata->right, shouldRet)); return copyAstTree(left->value); |