Skip to content

Commit

Permalink
v.out.dxf: Fix Resource Leak issue in main.c (#4753)
Browse files Browse the repository at this point in the history
Fix Resource Leak
  • Loading branch information
ShubhamDesai authored Nov 29, 2024
1 parent 27bf5f8 commit 85eb51a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vector/v.out.dxf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ int add_plines(struct Map_info *Map, int field, double textsize)
}
nlines_dxf++;
}
Vect_destroy_line_struct(Points);
Vect_destroy_cats_struct(Cats);

return nlines_dxf;
}

0 comments on commit 85eb51a

Please sign in to comment.