Skip to content

Commit

Permalink
v.generalize: Fix Resource Leak issue in displacement.c (#4422)
Browse files Browse the repository at this point in the history
* fix Resource Leak

* fix for points
  • Loading branch information
ShubhamDesai authored Oct 1, 2024
1 parent 25619dd commit 6382949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vector/v.generalize/displacement.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ int snakes_displacement(struct Map_info *In, struct Map_info *Out,
matrix_free(&fy);
matrix_free(&dx_old);
matrix_free(&dy_old);
Vect_destroy_cats_struct(Cats);
Vect_destroy_line_struct(Points);

return 0;
}

0 comments on commit 6382949

Please sign in to comment.