aboutsummaryrefslogtreecommitdiff
path: root/src/runner/runner.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-27 22:00:49 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-27 22:00:49 +0330
commit5823be69762ac3d15869d4de65647f0b9ca82449 (patch)
tree5b1a991d3c4cb7b5ac104930e02fd1b7e9d2abdf /src/runner/runner.h
parenta7fbbde04d81e17198156effe776b0a26af5aceb (diff)
fix memory leak
Diffstat (limited to 'src/runner/runner.h')
-rw-r--r--src/runner/runner.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runner/runner.h b/src/runner/runner.h
index 00322c6..66ad757 100644
--- a/src/runner/runner.h
+++ b/src/runner/runner.h
@@ -21,11 +21,11 @@ AstTree *runAstTreeCFunction(AstTree *tree, AstTree **arguments,
AstTree *runExpression(AstTree *expr, AstTreeScope *scope, bool *shouldRet,
bool isLeft, bool isComptime, u32 *breakCount,
- bool *shouldContinue);
+ bool *shouldContinue,bool needOwnership);
AstTree *getForVariable(AstTree *expr, AstTreeScope *scope, bool *shouldRet,
bool isLeft, bool isComptime, u32 *breakCount,
- bool *shouldContinue, bool isLazy);
+ bool *shouldContinue, bool isLazy,bool needOwnership);
bool discontinue(bool shouldRet, u32 breakCount);
@@ -34,3 +34,4 @@ AstTree *toRawValue(AstTree *value);
AstTree *castTo(AstTree *value, AstTree *to);
ffi_type *toFFIType(AstTree *type);
+void deleteFFIType(ffi_type *type);