]> granicus.if.org Git - postgis/commitdiff
Leak plugged in compute_serialized_box3d_p. Version upgraded to 1.0.4.
authorSandro Santilli <strk@keybit.net>
Sat, 3 Sep 2005 06:10:18 +0000 (06:10 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 3 Sep 2005 06:10:18 +0000 (06:10 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1884 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
Version.config
lwgeom/lwgeom_api.c

diff --git a/CHANGES b/CHANGES
index 650205ce7b277081c4ac2b27c34a141874c35f1a..42c94dd600f33a62b47a99942fb7c5161b08f5c8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,5 @@
 PostGIS 1.0.4
+       - Memory leak plugged in GiST indexing
        - Segfault fix in transform() handling of proj4 errors
        - Fixed some proj4 texts in spatial_ref_sys (missing +proj)
        - GiST indexing cleanup
index 6b31dc58c94f3bdee723c263d12a41540cee712a..74dfab51fd2c575caaa83989a06f02bacdf9e3e9 100644 (file)
@@ -4,7 +4,7 @@
 # shared library version
 SO_MAJOR_VERSION=1
 SO_MINOR_VERSION=0
-SO_MICRO_VERSION=3
+SO_MICRO_VERSION=4
 
 # sql scripts version
 SCRIPTS_VERSION=0.3.0
index 6b7a6bc4f7bbbd76d0d5ce5626145b29ef67a07f..0e8305cbda6ecb7905d60b8c61dd02a19f1211d7 100644 (file)
@@ -1357,15 +1357,17 @@ lwgeom_size_inspected(const LWGEOM_INSPECTED *inspected, int geom_number)
 int
 compute_serialized_box3d_p(uchar *srl, BOX3D *out)
 {
-         BOX3D *box = compute_serialized_box3d(srl);
-         if ( ! box ) return 0;
-         out->xmin = box->xmin;
-         out->ymin = box->ymin;
-         out->zmin = box->zmin;
-         out->xmax = box->xmax;
-         out->ymax = box->ymax;
-         out->zmax = box->zmax;
-         return 1;
+       BOX3D *box = compute_serialized_box3d(srl);
+       if ( ! box ) return 0;
+       out->xmin = box->xmin;
+       out->ymin = box->ymin;
+       out->zmin = box->zmin;
+       out->xmax = box->xmax;
+       out->ymax = box->ymax;
+       out->zmax = box->zmax;
+       lwfree(box);
+
+       return 1;
 }
 
 // Compute bounding box of a serialized LWGEOM, even if it is