[gs-bugs] [Bug 690406] memleak in pdf_addclipmask()

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Fri Jul 3 00:42:19 PDT 2009


http://bugs.ghostscript.com/show_bug.cgi?id=690406





------- Additional Comments From kkowalczyk at gmail.com  2009-07-03 00:42 -------
This is what valgrind says:

kjkmacpro:mupdf kkowalczyk$ valgrind --auto-run-dsymutil=yes --leak-check=full
obj-dbg/pdfdraw ~/Downloads/000026.pdf 
==21492== Memcheck, a memory error detector.
==21492== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==21492== Using LibVEX rev 1899, a library for dynamic binary translation.
==21492== Copyright (C) 2004-2009, and GNU GPL'd, by OpenWorks LLP.
==21492== Using valgrind-3.5.0.SVN, a dynamic binary instrumentation framework.
==21492== Copyright (C) 2000-2009, and GNU GPL'd, by Julian Seward et al.
==21492== For more details, rerun with: -v
==21492== 
Drawing pages 1-1...
draw 000026.pdf:001 6662d2fbff90fcd13f2753454ecd32cc
==21492== 
==21492== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==21492== malloc/free: in use at exit: 24,244 bytes in 51 blocks.
==21492== malloc/free: 3,057 allocs, 3,006 frees, 6,238,113 bytes allocated.
==21492== For counts of detected errors, rerun with: -v
==21492== searching for pointers to 51 not-freed blocks.
==21492== checked 664,444 bytes.
==21492== 
==21492== 20 bytes in 1 blocks are definitely lost in loss record 2 of 7
==21492==    at 0x54E516: malloc (vg_replace_malloc.c:193)
==21492==    by 0x1243C: fz_malloc (base_memory.c:5)
==21492==    by 0x15514: fz_newovernode (node_misc2.c:13)
==21492==    by 0x2DADE: pdf_newovernode (pdf_build.c:51)
==21492==    by 0x2FA3B: pdf_addclipmask (pdf_build.c:577)
==21492==    by 0x300C9: pdf_showpath (pdf_build.c:761)
==21492==    by 0x4AFB0: runkeyword (pdf_interpret.c:1145)
==21492==    by 0x4C426: pdf_runcsi (pdf_interpret.c:1381)
==21492==    by 0x50602: runone (pdf_page.c:16)
==21492==    by 0x50AD3: loadpagecontents (pdf_page.c:119)
==21492==    by 0x50FE4: pdf_loadpage (pdf_page.c:226)
==21492==    by 0x63662: drawloadpage (pdfdraw.c:169)
==21492== 
==21492== LEAK SUMMARY:
==21492==    definitely lost: 20 bytes in 1 blocks.
==21492==    indirectly lost: 0 bytes in 0 blocks.
==21492==      possibly lost: 0 bytes in 0 blocks.
==21492==    still reachable: 24,224 bytes in 50 blocks.
==21492==         suppressed: 0 bytes in 0 blocks.
==21492== Reachable blocks (those to which a pointer was found) are not shown.
==21492== To see them, rerun with: --leak-check=full --show-reachable=yes





------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the gs-bugs mailing list