Ticket #2055 (new defect)
[PATCH - libtiff] Leak in GDALDefaultOverviews::HaveMaskFile ?
| Reported by: | rouault | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | GDAL_Raster | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When running Valgrind on mask.py (mask_2 and mask_3 tests can be disabled), I get the following leak reported :
==4297== 272 bytes in 2 blocks are definitely lost in loss record 114 of 136 ==4297== at 0x4022765: malloc (vg_replace_malloc.c:149) ==4297== by 0x4701CCC: VSIMalloc (cpl_vsisimple.cpp:280) ==4297== by 0x469D504: _TIFFmalloc (tif_vsi.c:156) ==4297== by 0x469FF42: TIFFInitZIP (tif_zip.c:406) ==4297== by 0x465409D: TIFFSetCompressionScheme (tif_compress.c:172) ==4297== by 0x4654C61: _TIFFVSetField (tif_dir.c:196) ==4297== by 0x4655E9A: TIFFVSetField (tif_dir.c:696) ==4297== by 0x4655E53: TIFFSetField (tif_dir.c:682) ==4297== by 0x465EEBE: TIFFReadDirectory (tif_dirread.c:3412) ==4297== by 0x468D72C: TIFFClientOpen (tif_open.c:464) ==4297== by 0x46BB9E1: XTIFFClientOpen (xtiff.c:174) ==4297== by 0x46A02EB: VSI_TIFFOpen(char const*, char const*) (tifvsi.cpp:172) ==4297== by 0x455BA73: GTiffDataset::Open(GDALOpenInfo*) (geotiff.cpp:2810) ==4297== by 0x46CF5C9: GDALOpen (gdaldataset.cpp:1774) ==4297== by 0x46D14CA: GDALDefaultOverviews::HaveMaskFile(char**, char const*) (gdaldefaultoverviews.cpp:760) ==4297== by 0x46D2789: GDALDefaultOverviews::BuildOverviews(char const*, char const*, int, int*, int, int*, int (*)(double, char const*, void*), void*) (gdaldefaultoverviews.cpp:488) ==4297== by 0x46D01BE: GDALDataset::IBuildOverviews(char const*, int, int*, int, int*, int (*)(double, char const*, void*), void*) (gdaldataset.cpp:1197) ==4297== by 0x46D007F: GDALDataset::BuildOverviews(char const*, int, int*, int, int*, int (*)(double, char const*, void*), void*) (gdaldataset.cpp:1146) ==4297== by 0x46D0133: GDALBuildOverviews (gdaldataset.cpp:1174) ==4297== by 0x442FE5C: _wrap_Dataset_BuildOverviews (gdal_wrap.cpp:3255) ==4297==
The leak is caused by something in mask_5. (GDAL built with internal libtiff)
Change History
Note: See
TracTickets for help on using
tickets.
