Skip to content

Commit

Permalink
r.resamp.bspline: fix memory leak (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm committed Jun 30, 2023
1 parent 30cdd5a commit f547643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions raster/r.resamp.bspline/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ int main(int argc, char *argv[])
else {
if (observ)
G_free(observ);
if (observ_marked)
G_free(observ_marked);
if (npoints == 0)
G_warning(_("No data within this subregion. "
"Consider increasing the spline step."));
Expand Down

0 comments on commit f547643

Please sign in to comment.