From: Andrew R. <and...@us...> - 2008-10-20 12:49:41
|
Dear Martin, Many thanks for your bug report. I'm sorry it has taken so long to get this issue addressed. It had somehow fallen between the gaps with our development team. I have now applied your patch which fixes one of the errors. So far as I can see we are correctly calling FT_Done_FreeType and so I think the other error may be a FreeType issue rather than a plplot issue. If others have a newer version of the freetype library it would be interesting to check. I used 2.3.5 for my tests. Thanks again. Andrew On Thu, Jul 10, 2008 at 10:06:45AM +0200, Martin Sarajervi wrote: > Hi, > > I have spotted two memleeks (I get them on exit) in plplot. Valgrind report > follows here: > > ==912== > ==912== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 5 from 2) > ==912== malloc/free: in use at exit: 1,056 bytes in 2 blocks. > ==912== malloc/free: 1,700 allocs, 1,698 frees, 4,076,441 bytes allocated. > ==912== For counts of detected errors, rerun with: -v > ==912== searching for pointers to 2 not-freed blocks. > ==912== checked 196,280 bytes. > ==912== > ==912== 32 bytes in 1 blocks are definitely lost in loss record 1 of 2 > ==912== at 0x4904A06: malloc (vg_replace_malloc.c:149) > ==912== by 0x3617523FBD: FT_New_Memory (in > /usr/lib64/libfreetype.so.6.3.7) > ==912== by 0x3617524085: FT_Init_FreeType (in > /usr/lib64/libfreetype.so.6.3.7) > ==912== by 0x4A66BC0: plD_FreeType_init (plfreetype.c:617) > ==912== by 0x4EBC6E4: ??? > ==912== by 0x4EBB05F: ??? > ==912== by 0x4EBB14D: ??? > ==912== by 0x4A55698: plP_init (plcore.c:89) > ==912== by 0x4A59DF4: c_plinit (plcore.c:1650) > ==912== by 0x4026FA: main (plot_test.c:45) > ==912== > ==912== > ==912== 1,024 bytes in 1 blocks are definitely lost in loss record 2 of 2 > ==912== at 0x4905D27: calloc (vg_replace_malloc.c:279) > ==912== by 0x4A66B97: plD_FreeType_init (plfreetype.c:614) > ==912== by 0x4EBC6E4: ??? > ==912== by 0x4EBB05F: ??? > ==912== by 0x4EBB14D: ??? > ==912== by 0x4A55698: plP_init (plcore.c:89) > ==912== by 0x4A59DF4: c_plinit (plcore.c:1650) > ==912== by 0x4026FA: main (plot_test.c:45) > ==912== > ==912== LEAK SUMMARY: > ==912== definitely lost: 1,056 bytes in 2 blocks. > ==912== possibly lost: 0 bytes in 0 blocks. > ==912== still reachable: 0 bytes in 0 blocks. > ==912== suppressed: 0 bytes in 0 blocks. > > > I managed to fix the last one, you can see the fix in the patch. I don't > have any debugflags on my freetype install, but I suspect the flaw is in > plplot? > > > > Best, > Martin > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel |