summaryrefslogtreecommitdiff
path: root/kicad/lib-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/lib-parse.c')
-rw-r--r--kicad/lib-parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kicad/lib-parse.c b/kicad/lib-parse.c
index e24e37a..e2f8a29 100644
--- a/kicad/lib-parse.c
+++ b/kicad/lib-parse.c
@@ -360,6 +360,10 @@ static void free_objs(struct lib_obj *objs)
while (objs) {
next = objs->next;
switch (objs->type) {
+ case lib_obj_poly:
+ free(objs->u.poly.x);
+ free(objs->u.poly.y);
+ break;
case lib_obj_text:
free((char *) objs->u.text.s);
break;