Skip to content

Commit

Permalink
ps.map: Fix Resource Leak issue in ps_vlines.c (#4819)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Dec 9, 2024
1 parent 9e4decb commit 54baf2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ps/ps.map/ps_vlines.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,8 @@ int PS_vlines_plot(struct Map_info *P_map, int vec, int type)
}
fprintf(PS.fp, "\n");
fprintf(PS.fp, "0 setlinejoin\n"); /* reset line join to miter */
Vect_destroy_line_struct(Points);
Vect_destroy_line_struct(nPoints);
Vect_destroy_cats_struct(Cats);
return 0;
}

0 comments on commit 54baf2a

Please sign in to comment.