diff --git a/raster/r.resamp.bspline/main.c b/raster/r.resamp.bspline/main.c index 54052469943..20f0edbde70 100644 --- a/raster/r.resamp.bspline/main.c +++ b/raster/r.resamp.bspline/main.c @@ -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."));