Opened 16 years ago
Closed 16 years ago
#2210 closed defect (fixed)
[PATCH] ECW : fix memory leaks
Reported by: | Even Rouault | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.0 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | ecw |
Cc: |
Description
The attached patch fixes the following memory leaks found by running Valgrind on ecw.py :
- oError.GetErrorMessage() returned value should be freed with NCSFree
- pabyBILBuffer was not freed
- pszEPSGProj and pszEPSGDatum should be freed with NCSFree
- GDALECWCompressor::WriteJP2Box was leaking newly created JP2UserBox
- poIOStream was leaking on J2K_SUBFILE: datasets (bUsingCustomStream was never set to TRUE)
Attachments (1)
Change History (4)
comment:1 by , 16 years ago
Milestone: | → 1.6.0 |
---|
comment:2 by , 16 years ago
by , 16 years ago
Attachment: | gdal_svn_trunk_fix2210.patch added |
---|
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch applied in trunk in r13901
Note:
See TracTickets
for help on using tickets.
Updated version that also fixes a potential buffer overflow with szProjection and szDatum