Opened 19 years ago

Closed 19 years ago

#1420 closed defect (fixed)

Layers not closed when requested

Reported by: jerry.pisk@… Owned by: jerry.pisk@…
Priority: high Milestone:
Component: PostGIS Interface Version: 4.6
Severity: normal Keywords:
Cc:

Description

PostGIS layers are not closed when msLayerClose is called which leads to 
memory leaks the next time the layer is used since most mappostgis functions 
do not check for an already open layer (prepare_database for example does not 
check layerinfo->urid_name before allocating new memory for it). The fix will 
include both closing the layer when msLayerClose is called and making sure 
mappostgis does not leak memory.

Change History (2)

comment:1 by jerry.pisk@…, 19 years ago

As far as I can tell this was done before connection pool supported threads. 
No longer needed and since connection pool is now thread safe.

comment:2 by jerry.pisk@…, 19 years ago

Resolution: fixed
Status: newclosed
Removed msPOSTGISLayerResultClose, no longer needed. Using connection pool 
even when compiled with threads.
Note: See TracTickets for help on using tickets.