poppler/Catalog.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5ab26b908fde3c1dc9f9a2e091d03c8e6db47f98
Author: Albert Astals Cid <[email protected]>
Date:   Sat Oct 23 23:12:44 2010 +0100

    Do not leak attrs1

diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index 2754d68..6feaebe 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -238,6 +238,7 @@ int Catalog::readPageTree(Dict *pagesDict, PageAttrs 
*attrs, int start,
   attrs1 = new PageAttrs(attrs, pagesDict);
   pagesDict->lookup("Kids", &kids);
   if (!kids.isArray()) {
+    delete attrs1;
     error(-1, "Kids object (page %d) is wrong type (%s)",
          start+1, kids.getTypeName());
     return start;
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to