mirror of https://github.com/YosysHQ/yosys.git
Fixed memory leak
This commit is contained in:
parent
11c8a9eb96
commit
d9a4381012
|
@ -1120,6 +1120,7 @@ void AstModule::reprocess_module(RTLIL::Design *design, dict<RTLIL::IdString, RT
|
||||||
|
|
||||||
// Generate RTLIL from AST for the new module and add to the design:
|
// Generate RTLIL from AST for the new module and add to the design:
|
||||||
AstModule *newmod = process_module(new_ast, false);
|
AstModule *newmod = process_module(new_ast, false);
|
||||||
|
delete(new_ast);
|
||||||
design->add(newmod);
|
design->add(newmod);
|
||||||
RTLIL::Module* mod = design->module(original_name);
|
RTLIL::Module* mod = design->module(original_name);
|
||||||
if (is_top)
|
if (is_top)
|
||||||
|
|
Loading…
Reference in New Issue