]> granicus.if.org Git - postgis/commitdiff
Free iterator when complete
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 13 May 2015 20:00:47 +0000 (20:00 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 13 May 2015 20:00:47 +0000 (20:00 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13503 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos.c
postgis/lwgeom_inout.c

index 1b615b54337f9edd880c41f65ce61a25e11f4c15..0ab16b4163d8daf93d6bec790fda86508184be1e 100644 (file)
@@ -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,
index e408a17b9dae0d4ddc2cc296120d834b50ac377e..87ec50c076c14ff41a953fae6f5136fdc0d2967d 100644 (file)
@@ -608,7 +608,6 @@ Datum TWKBFromLWGEOMArray(PG_FUNCTION_ARGS)
                }
 
        }
-
        array_free_iterator(iter_geoms);
        array_free_iterator(iter_ids);