From 29a8383daba90d0d26de0ca1349d026240fc7aeb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 8 Jul 2024 23:15:41 +0200 Subject: Fix memory leak --- src/codegen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/codegen.c b/src/codegen.c index a45d458..5cd7ed4 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -117,6 +117,7 @@ codegen(const char *file, bitset_t *cnst, fold_t *folds, scope_t *scps, if (LLVMPrintModuleToFile(llmod, oflag, &error) == 1) { if (errno != ENXIO) err("codegen: %s: %s", oflag, error); + LLVMDisposeMessage(error); LLVMDumpModule(llmod); } } else { -- cgit v1.2.3