Skip to content

Commit fb8c0b2

Browse files
committed
latch names array hasn't been freed before
1 parent 4dac4a9 commit fb8c0b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ODIN_II/SRC/read_blif.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ void create_latch_node_and_driver(FILE *file, Hashtable *output_nets_hash)
399399
output_nets_hash->add(new_node->name, new_net);
400400

401401
/* Free the char** names */
402+
for (i = 0; i < input_token_count; i++)
403+
// Except these two since they were assigned to new_node
404+
if (i!=0 && i!=3)
405+
vtr::free(names[i]);
406+
402407
vtr::free(names);
403408
vtr::free(ptr);
404409
}

0 commit comments

Comments
 (0)