poppler/XRef.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit b5ca57dbfecd9e680b3bd4b293b0eac400d24cfb
Author: Albert Astals Cid <[email protected]>
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler