Opened 16 years ago

Closed 16 years ago

#1083 closed defect (fixed)

OGR SQL result set leaks due to incorrect call of deallocator

Reported by: mloskot Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: OGR Layer support Version: Trunk
Keywords: memory release Cc:
Must Fix for Release: No Platform: Linux
Platform Version: Ubuntu 7.04 Awaiting user input: no

Description

In file qgsogrprovider.cpp, line 1290, invalid call of function OGR_DS_ReleaseResultSet causes memory leak in GDAL/OGR.

The function is called with parameters in incorrect order:

OGR_DS_ReleaseResultSet(l, ogrDataSource);

but it should read

OGR_DS_ReleaseResultSet(ogrDataSource, l);

In other words, datasource handle goes first, then layer handle (see OGR_DS_ReleaseResultSet prototype).

Change History (1)

comment:1 by jef, 16 years ago

Resolution: fixed
Status: newclosed

fixed in r8420

Note: See TracTickets for help on using tickets.