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

New commits:
commit f10359121568409e6062a82de696fe93be615a53
Author: Albert Astals Cid <aa...@kde.org>
Date:   Sun Dec 3 22:41:32 2017 +0100

    Fix memory leak on error condition

diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index eebbbb42..36678213 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -343,6 +343,7 @@ GBool Catalog::cachePageTree(int page)
 
       if (lastCachedPage >= numPages) {
         error(errSyntaxError, -1, "Page count in top-level pages object is 
incorrect");
+        delete p;
         return gFalse;
       }
 
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to