Ticket #1922 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

Major memory leak in ECWDataset::IRasterIO()

Reported by: warmerdam Assigned to: warmerdam
Priority: normal Milestone: 1.4.3
Component: GDAL_Raster Version: 1.4.0
Severity: normal Keywords: ecw
Cc: gaopeng

Description

The ECWDataset::IRasterIO() function has major memory leaks of the scanline buffer.

The problem appears to go back at least as far as GDAL 1.4.0.

It does not affect blocked data access, only direct (optimized) dataset level rasterio.

I have confirmed that the similarly structured ECWRasterBand::IRasterIO() method does not have the same problem.

Change History

10/17/07 15:22:04 changed by warmerdam

  • status changed from new to closed.
  • resolution set to fixed.

Patched in trunk (r12462), 1.4 (r12463) and 1.4-esri (r12464).

10/17/07 15:26:57 changed by warmerdam

note, this memory leak basically was leaking a buffer that is one scanline of the requested window of data. So applications requesting "tall" windows will generally only leak moderately.