[poppler] Branch 'better_object' - poppler/XRef.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri May 12 23:05:56 UTC 2017


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

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


More information about the poppler mailing list