From: Sandro Santilli Date: Mon, 21 Nov 2016 15:27:12 +0000 (+0000) Subject: Do not continue execution of ptarray_to_GEOSCoordSeq on error X-Git-Tag: 2.4.0alpha~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a997c26421311dc10f376f3fe7c0eee47ea65bc;p=postgis Do not continue execution of ptarray_to_GEOSCoordSeq on error git-svn-id: http://svn.osgeo.org/postgis/trunk@15241 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom_geos.c b/liblwgeom/lwgeom_geos.c index c635ee70c..c9a7dcd20 100644 --- a/liblwgeom/lwgeom_geos.c +++ b/liblwgeom/lwgeom_geos.c @@ -225,7 +225,10 @@ ptarray_to_GEOSCoordSeq(const POINTARRAY *pa) dims = 3; if ( ! (sq = GEOSCoordSeq_create(pa->npoints, dims)) ) + { lwerror("Error creating GEOS Coordinate Sequence"); + return NULL; + } for ( i=0; i < pa->npoints; i++ ) {