From: Sandro Santilli Date: Sat, 3 Sep 2005 06:10:18 +0000 (+0000) Subject: Leak plugged in compute_serialized_box3d_p. Version upgraded to 1.0.4. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b834a5835e4bab5850242b8aff56242cff1efdc0;p=postgis Leak plugged in compute_serialized_box3d_p. Version upgraded to 1.0.4. git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1884 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/CHANGES b/CHANGES index 650205ce7..42c94dd60 100644 --- 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 diff --git a/Version.config b/Version.config index 6b31dc58c..74dfab51f 100644 --- a/Version.config +++ b/Version.config @@ -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 diff --git a/lwgeom/lwgeom_api.c b/lwgeom/lwgeom_api.c index 6b7a6bc4f..0e8305cbd 100644 --- a/lwgeom/lwgeom_api.c +++ b/lwgeom/lwgeom_api.c @@ -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