Skip to content

Commit

Permalink
v.build.polylines: Fix Resource Leak issue in walk.c (#4734)
Browse files Browse the repository at this point in the history
* Resource Leak

* Suggested changes
  • Loading branch information
ShubhamDesai authored Nov 29, 2024
1 parent 5c1ea4a commit ca5261d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vector/v.build.polylines/walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ int walk_forward_and_pick_up_coords(struct Map_info *map, int start_line,
next_node = n2; /* continue at end node */
}
else {
if (cats_tmp)
Vect_destroy_cats_struct(cats_tmp);
return 1; /* no other line */
}
}
Expand Down

0 comments on commit ca5261d

Please sign in to comment.