Skip to content

Commit df29fde

Browse files
committed
fix memory leak
1 parent 122aa2a commit df29fde

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/GDSIIgeom.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ geometric_object_list get_GDSII_prisms(material_type material, const char *GDSII
153153
double height = zmax - zmin;
154154
vector3 zaxis = {0, 0, 1};
155155
prisms.items[np] = make_prism(material, vertices, num_vertices, height, zaxis);
156+
delete[] vertices; // make_prism copies the data
156157
}
157158
return prisms;
158159
}

0 commit comments

Comments
 (0)