[poppler] poppler/Catalog.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Dec 3 21:43:30 UTC 2017


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

New commits:
commit f10359121568409e6062a82de696fe93be615a53
Author: Albert Astals Cid <aacid at 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;
       }
 


More information about the poppler mailing list