[Poppler-bugs] [Bug 18924] New: Memory leak
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Dec 7 08:22:54 PST 2008
http://bugs.freedesktop.org/show_bug.cgi?id=18924
Summary: Memory leak
Product: poppler
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: major
Priority: high
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: igorenbein at finjan.com
Created an attachment (id=20868)
--> (http://bugs.freedesktop.org/attachment.cgi?id=20868)
Test file for memory leak detection
Hello,
We are using version poppler-0.10.1. Memory leak exist at 'Page' destruction.
'Dict' objects are not freed.
The following call stack shows memory leak:
==10949== 757 (200 direct, 557 indirect) bytes in 10 blocks are definitely lost
in loss record 846 of 1,162
==10949== at 0x401DB31: operator new(unsigned) (vg_replace_malloc.c:163)
==10949== by 0x6116A45: Object::initDict(XRef*) (Object.cc:71)
==10949== by 0x611D42A: Parser::getObj(Object*, unsigned char*,
CryptAlgorithm, int, int, int) (Parser.cc:88)
==10949== by 0x611D561: Parser::getObj(Object*, unsigned char*,
CryptAlgorithm, int, int, int) (Parser.cc:101)
==10949== by 0x612DE28: XRef::fetch(int, int, Object*) (XRef.cc:957)
==10949== by 0x6116C3F: Object::fetch(XRef*, Object*) (Object.cc:120)
==10949== by 0x60B8DB1: Array::get(int, Object*) (Array.cc:75)
==10949== by 0x60B9D37: Catalog::readPageTree(Dict*, PageAttrs*, int, char*)
(Object.h:273)
==10949== by 0x60B9E6D: Catalog::readPageTree(Dict*, PageAttrs*, int, char*)
(Catalog.cc:336)
==10949== by 0x60BBC95: Catalog::Catalog(XRef*) (Catalog.cc:121)
==10949== by 0x611DF7C: PDFDoc::setup(GooString*, GooString*)
(PDFDoc.cc:233)
==10949== by 0x611F064: PDFDoc::PDFDoc(BaseStream*, GooString*, GooString*,
void*) (PDFDoc.cc:198)
Test file and patch are attached.
Regards,
Ilya Gorenbein
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list