]> granicus.if.org Git - postgis/commitdiff
memory release in force_collection
authorSandro Santilli <strk@keybit.net>
Mon, 28 Nov 2005 11:30:55 +0000 (11:30 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 28 Nov 2005 11:30:55 +0000 (11:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2084 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_functions_basic.c

index 9af9926c319f2e1d9221344c0d2b917dab556cf7..d60aefadc6c7a6f82f579e52a874b895a2902938 100644 (file)
@@ -1488,6 +1488,7 @@ Datum LWGEOM_force_multi(PG_FUNCTION_ARGS)
 
 
        result = pglwgeom_serialize(lwgeom);
+       lwgeom_release(lwgeom);
 
        PG_FREE_IF_COPY(geom, 0);