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

New commits:
commit b5ca57dbfecd9e680b3bd4b293b0eac400d24cfb
Author: Albert Astals Cid <aa...@kde.org>
Date:   Sat May 13 01:05:43 2017 +0200

    Fix memory leak in XRef::constructXRef

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index f32546ea..10526017 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -865,6 +865,7 @@ GBool XRef::constructXRef(GBool *wasReconstructed, GBool 
needCatalogDict) {
   bool oneCycle = true;
   int offset = 0;
 
+  resize(0); // free entries properly
   gfree(entries);
   capacity = 0;
   size = 0;
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to