[postgis-tickets] [PostGIS] #2643: [raster] memory leaks
PostGIS
trac at osgeo.org
Wed Feb 12 04:29:11 PST 2014
#2643: [raster] memory leaks
--------------------+-------------------------------------------------------
Reporter: yngwar | Owner: dustymugs
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.2
Component: raster | Version: 2.1.x
Keywords: |
--------------------+-------------------------------------------------------
Every time when "rt_raster_deserialize(...)" is used in some functions
(for example in "RASTER_out") - on exit you destroy memory allocated
structures by call "rt_raster_destroy(...)". This function calls
"rtdealloc(raster->bands)" to free array of pointers to "rt_band_t". Then
it calls "rtdealloc(raster)" to free "rt_raster_t". But you never free the
memory allocated by structure "rt_band_t" for each band in band pointer
array "raster->bands". Why? I think it couses the memory leaks.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2643>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list