[Poppler-bugs] [Bug 67666] New: Correction for DEBUG_MEM usage
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Aug 2 04:45:25 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=67666
Priority: medium
Bug ID: 67666
Assignee: poppler-bugs at lists.freedesktop.org
Summary: Correction for DEBUG_MEM usage
Severity: normal
Classification: Unclassified
OS: All
Reporter: Thomas.Freitag at alfa.de
Hardware: Other
Status: NEW
Version: unspecified
Component: general
Product: poppler
Created attachment 83530
--> https://bugs.freedesktop.org/attachment.cgi?id=83530&action=edit
new function gstrdup
If the poppler sources are compiled with DBEUG_MEM, the gfree call gives an
error message if the memory is not allocated by gmalloc. But a very few
routines uses strdup to allocate and copy strings, and later use gfree to free
the allocated memory, which gives an error message if compiled with DEBUG_MEM.
One sample for this behaviour is Dict::Dict(Dict* dictA).
The attached patch introduces the new function gstrdup and use it everywhere
instead of strdup.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130802/7b06832e/attachment.html>
More information about the Poppler-bugs
mailing list