Skip to content

Commit

Permalink
v.reclass: Fix Resource Leak issue in reclass.c (#4457)
Browse files Browse the repository at this point in the history
fix Resource Leak
  • Loading branch information
ShubhamDesai authored Oct 7, 2024
1 parent 3932773 commit aa0b497
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vector/v.reclass/reclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ int reclass(struct Map_info *In, struct Map_info *Out, int type, int field,
G_warning("For %d elements requested negative category (ignored, no "
"category in output)",
negative);
Vect_destroy_cats_struct(Cats);
Vect_destroy_cats_struct(NewCats);
Vect_destroy_line_struct(Points);

return (rclelem);
}

0 comments on commit aa0b497

Please sign in to comment.