mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): Delete target machine when no more in use (prevent leak in compilation)
This commit is contained in:
@@ -65,7 +65,7 @@ llvm::Error emitObject(llvm::Module &module, string objectPath) {
|
||||
objectFile->os().flush();
|
||||
objectFile->os().close();
|
||||
objectFile->keep();
|
||||
|
||||
delete targetMachine;
|
||||
return llvm::Error::success();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user