Skip to content

Commit 587495e

Browse files
committed
fix memory leak
1 parent 185f162 commit 587495e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)