Skip to content

Commit

Permalink
v.in.ascii: Fix Resource Leak issue in points.c (#4729)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Nov 23, 2024
1 parent 6acffcb commit b2c7fce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vector/v.in.ascii/points.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ int points_to_bin(FILE *ascii, int rowlen, struct Map_info *Map,
G_free_tokens(tokens);
}
G_percent(nrows, nrows, 2);
Vect_destroy_line_struct(Points);
Vect_destroy_cats_struct(Cats);
G_free(buf);

return 0;
}

0 comments on commit b2c7fce

Please sign in to comment.