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

Attachment: eple.patch.gz
Description: GNU Zip compressed data

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to