diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-07-08 23:15:41 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-07-08 23:15:41 +0200 |
commit | 29a8383daba90d0d26de0ca1349d026240fc7aeb (patch) | |
tree | 758823341c7a70d1769c3aa2326e59b90a6a699f | |
parent | ec6bd774dc69bcc8cf3d0a0c429ffe47d18f7ce3 (diff) |
Fix memory leak
-rw-r--r-- | src/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |