Skip to content

Commit

Permalink
r.resamp.bspline: fix memory leak (OSGeo#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm authored and neteler committed Nov 7, 2023
1 parent b12bb46 commit 681dfce
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 681dfce

Please sign in to comment.