Skip to content

Commit 1c66921

Browse files
committed
ODIN_II: Leak fix: free contents of local_param_table_sc
1 parent be57a85 commit 1c66921

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)