Dispose of copied module.

This commit is contained in:
Christoffer Lerno
2025-02-20 23:25:25 +01:00
parent 9f165342e2
commit 80e360d8dd

View File

@@ -680,6 +680,10 @@ static void llvm_emit_file(GenContext *c, const char *filename, LLVMCodeGenFileT
{
goto ERR;
}
if (clone_module)
{
LLVMDisposeModule(module);
}
file = fopen(filename, "wb");
if (!file)
{