Skip to content

Commit c56b7ec

Browse files
authored
Merge pull request verilog-to-routing#877 from CAS-Atlantic/sp_ram_leak
Odin_II: fix implicit SP ram leak
2 parents 2c1a51e + 789604f commit c56b7ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ODIN_II/SRC/implicit_memory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,5 +394,6 @@ void collapse_implicit_memory_to_single_port_ram(implicit_memory *memory)
394394
}
395395

396396
ast_node_t *ast_node = node->related_ast_node;
397+
vtr::free(ast_node->children[0]->types.identifier);
397398
ast_node->children[0]->types.identifier = vtr::strdup(SINGLE_PORT_RAM_string);
398399
}

0 commit comments

Comments
 (0)