Skip to content

Commit b13b48a

Browse files
authored
Merge pull request verilog-to-routing#857 from j-b-1-7/odin_leak_fix_local_param_table_sc
ODIN_II: Leak fix: free contents of local_param_table_sc
2 parents 9c1d627 + 1c66921 commit b13b48a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ODIN_II/SRC/netlist_create_from_ast.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ void create_netlist()
428428
free_implicit_memory_index_and_finalize_memories();
429429
create_top_output_nodes(top_module, top_string);
430430

431+
for(i = 0; i < top_sc_list->local_param_table_sc->size; i++)
432+
{
433+
free_whole_tree((ast_node_t *)top_sc_list->local_param_table_sc->data[i]);
434+
}
431435
top_sc_list->local_param_table_sc = sc_free_string_cache(top_sc_list->local_param_table_sc);
432436
top_sc_list->local_symbol_table_sc = sc_free_string_cache(top_sc_list->local_symbol_table_sc);
433437
top_sc_list->num_local_symbol_table = 0;

0 commit comments

Comments
 (0)