Skip to content

Commit 84a4181

Browse files
committed
fix valgrind memory leak
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent d13c885 commit 84a4181

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libs/libarchfpga/src/arch_util.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ void free_type_descriptors(std::vector<t_physical_tile_type>& type_descriptors)
251251
vtr::free(type.is_ignored_pin);
252252
vtr::free(type.is_pin_global);
253253
vtr::free(type.pin_class);
254+
255+
for (auto equivalent_site : type.equivalent_sites) {
256+
vtr::free(equivalent_site.pb_type_name);
257+
}
258+
259+
for (auto port : type.ports) {
260+
vtr::free(port.name);
261+
}
254262
}
255263
type_descriptors.clear();
256264
}

0 commit comments

Comments
 (0)