From: Sandro Santilli Date: Mon, 19 Nov 2012 15:47:10 +0000 (+0000) Subject: Fix double free on ST_OffsetCurve exception (#2099) X-Git-Tag: 2.1.0beta2~384 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b350ffa8589b7b4ec0949dd0e76612b028184d7d;p=postgis Fix double free on ST_OffsetCurve exception (#2099) git-svn-id: http://svn.osgeo.org/postgis/trunk@10705 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom_geos.c b/liblwgeom/lwgeom_geos.c index 309f69166..64906cfde 100644 --- a/liblwgeom/lwgeom_geos.c +++ b/liblwgeom/lwgeom_geos.c @@ -1277,7 +1277,6 @@ lwgeom_offsetcurve(const LWLINE *lwline, double size, int quadsegs, int joinStyl if (g3 == NULL) { - GEOSGeom_destroy(g1); lwerror("GEOSOffsetCurve: %s", lwgeom_geos_errmsg); return NULL; }