[Digikam-devel] memory leak by Mr Valgrind

Gilles Caulier caulier.gilles at gmail.com
Tue Mar 13 16:27:07 GMT 2012


Francesco,

I found this leak in ICC color management code. I use liblcms version 2.1

==13505== 3,376 bytes in 1 blocks are possibly lost in loss record
9,965 of 10,328
==13505==    at 0x4C256DD: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13505==    by 0x77049AA: _cmsCreateProfilePlaceholder (in
/usr/lib64/liblcms.so.1.0.19)
==13505==    by 0x7704A0F: _cmsCreateProfileFromMemPlaceholder (in
/usr/lib64/liblcms.so.1.0.19)
==13505==    by 0x77084F5: cmsOpenProfileFromMem (in
/usr/lib64/liblcms.so.1.0.19)
==13505==    by 0x7B52DC7: Digikam::IccProfile::open() (iccprofile.cpp:332)
==13505==    by 0x7B50A6D:
Digikam::IccManager::displayProfile(QWidget*) (iccmanager.cpp:387)
==13505==    by 0x7C90C90:
Digikam::ThumbnailLoadThread::ThumbnailLoadThreadPriv::createLoadingDescription(QString
const&, int, bool) (thumbnailloadthread.cpp:332)
==13505==    by 0x7C91051:
Digikam::ThumbnailLoadThread::ThumbnailLoadThreadPriv::makeDescriptions(QStringList
const&, int) (thumbnailloadthread.cpp:399)
==13505==    by 0x7C91D71:
Digikam::ThumbnailLoadThread::pregenerateGroup(QStringList const&,
int) (thumbnailloadthread.cpp:611)
==13505==    by 0x835365F:
Digikam::ImageThumbnailModel::preloadThumbnails(QList<Digikam::ImageInfo>
const&) (imagethumbnailmodel.cpp:180)
==13505==    by 0x8353894:
Digikam::ImageThumbnailModel::preloadAllThumbnails()
(imagethumbnailmodel.cpp:201)
==13505==    by 0x8352DBF:
Digikam::ImageThumbnailModel::qt_metacall(QMetaObject::Call, int,
void**) (imagethumbnailmodel.moc:97)

Gilles



More information about the Digikam-devel mailing list