Skip to content

Commit

Permalink
r.carve: Fix resource leak issue in enforce_ds.c (#4505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Oct 14, 2024
1 parent ed02be5 commit b5289ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raster/r.carve/enforce_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include <grass/vector.h>
#include "enforce.h"

#ifndef MAX
Expand Down Expand Up @@ -487,4 +488,6 @@ static void process_line_segment(const int npts, void *rbuf, Point2 *pgxypts,
prevrow = row;
prevcol = col;
}
Vect_destroy_line_struct(points);
Vect_destroy_cats_struct(cats);
}

0 comments on commit b5289ee

Please sign in to comment.