mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Dispose of copied module.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user