From 5823be69762ac3d15869d4de65647f0b9ca82449 Mon Sep 17 00:00:00 2001 From: A404M Date: Tue, 27 May 2025 22:00:49 +0330 Subject: fix memory leak --- src/runner/runner.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/runner/runner.h') 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); -- cgit v1.2.3