From: Paul Ramsey Date: Wed, 13 May 2015 20:00:47 +0000 (+0000) Subject: Free iterator when complete X-Git-Tag: 2.2.0rc1~504 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3465b49c5e73cb12876507e12634ecfee2b873f;p=postgis Free iterator when complete git-svn-id: http://svn.osgeo.org/postgis/trunk@13503 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c index 1b615b543..0ab16b416 100644 --- a/postgis/lwgeom_geos.c +++ b/postgis/lwgeom_geos.c @@ -374,6 +374,7 @@ Datum pgis_union_geometry_array(PG_FUNCTION_ARGS) } } + array_free_iterator(iterator); /* ** Take our GEOS geometries and turn them into a GEOS collection, diff --git a/postgis/lwgeom_inout.c b/postgis/lwgeom_inout.c index e408a17b9..87ec50c07 100644 --- a/postgis/lwgeom_inout.c +++ b/postgis/lwgeom_inout.c @@ -608,7 +608,6 @@ Datum TWKBFromLWGEOMArray(PG_FUNCTION_ARGS) } } - array_free_iterator(iter_geoms); array_free_iterator(iter_ids);