From 5a997c26421311dc10f376f3fe7c0eee47ea65bc Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 21 Nov 2016 15:27:12 +0000 Subject: [PATCH] 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 --- liblwgeom/lwgeom_geos.c | 3 +++ 1 file changed, 3 insertions(+) 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++ ) {