Skip to content

Commit d04d41f

Browse files
committed
fixed memory leak
1 parent 3256475 commit d04d41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libarchfpga/src/arch_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static void free_pb_type(t_pb_type* pb_type) {
353353
vtr::free(pb_type->annotations[i].clock);
354354
}
355355
}
356-
if (pb_type->num_annotations > 0) {
356+
if (pb_type->annotations) {
357357
delete[] pb_type->annotations;
358358
}
359359

0 commit comments

Comments
 (0)