]> granicus.if.org Git - postgis/commitdiff
Fix double free on ST_OffsetCurve exception (#2099)
authorSandro Santilli <strk@keybit.net>
Mon, 19 Nov 2012 15:47:10 +0000 (15:47 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 19 Nov 2012 15:47:10 +0000 (15:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10705 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos.c

index 309f691665a7298a9060436fd943aecee7b50b2f..64906cfde041ef6b8aded8f4ec94e18dfc8acf8f 100644 (file)
@@ -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;
        }