[kde-edu]: valgrind question

Jason Harris kstars at 30doradus.org
Fri May 19 02:50:31 CEST 2006


Hello,

Running KStars through valgrind, I get warnings like the following:

==9881== 425600 bytes in 2660 blocks are definitely lost in loss record 
541 of 551
==9881==    at 0x1B904C07: operator new(unsigned) (vg_replace_malloc.c:133)
==9881==    by 0x82AEC65: KStarsData::processCity(QString const&) 
(kstarsdata.cpp:518)
==9881==    by 0x82AD93F: KStarsData::readCityData() (kstarsdata.cpp:387)
==9881==    by 0x82AC90F: KStarsData::slotInitialize() (kstarsdata.cpp:199)
==9881==

The line kstarsdata.cpp:518 is:

   geoList.append( new GeoLocation( blah, blah, blah ) );

But I don't think it is really leaking because the KStarsData dtor includes:

   while ( ! geoList.isEmpty() )
     delete geoList.takeFirst();

So, should I just ignore such valgrind errors, or is this code really 
leaking somehow?

thanks,
Jason


More information about the kde-edu mailing list