From 1cc4571579f675923677366acc65f4dd6d8750a7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 11 Jun 2024 21:24:40 +0200 Subject: Dispose the LLVM module after use --- src/codegen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/codegen.c b/src/codegen.c index fd9b0d2..410f68e 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -74,6 +74,7 @@ codegen(struct ast ast, struct lexemes toks) LLVMDisposeMessage(error); LLVMDumpModule(mod); + LLVMDisposeModule(mod); } size_t -- cgit v1.2.3