References #4172
git-svn-id: http://svn.osgeo.org/postgis/branches/2.5@16721
b70326c6-7e19-0410-871a-
916f4a2858ee
- #4162, ST_DWithin documentation examples for storing geometry and
radius in table (Darafei Praliaskouski, github user Boscop).
- #4163, MVT: Fix resource leak when the first geometry is NULL (Raúl Marín)
+ - #4172, Fix memory leak in lwgeom_offsetcurve (Raúl Marín)
PostGIS 2.5.0rc1
2018/08/19
}
if (result)
+ {
+ if (noded) lwgeom_free(noded);
return result;
+ }
else if (!noded)
{
noded = lwgeom_node(geom);
if (!noded)
{
- lwfree(noded);
lwerror("lwgeom_offsetcurve: cannot node input");
return NULL;
}
}
else
{
+ lwgeom_free(noded);
lwerror("lwgeom_offsetcurve: noded geometry cannot be offset");
return NULL;
}
}
+
return result;
}