Details
Description
org.apache.pdfbox.cos.COSDocument.close() does not close the streams and causing therefore a growing memory leak. Supposed fix:
public void close() throws IOException {
// if (!closed) {
// scratchFile.close();
// if (tmpFile != null)
// closed = true;
// }
// begin Robert Scharpf
closed = true;
if (scratchFile != null) {
try
catch (Exception e) {
}
}
scratchFile = null;
if (tmpFile != null) {
try
catch (Exception e) {
}
}
tmpFile = null;
List<COSObject> list = getObjectsByType(COSName.OBJ_STM);
if (list != null) {
for (COSObject objStream : list)
}
// end Robert Scharpf
}
Attachments
Issue Links
- is depended upon by
-
PDFBOX-1808 PDFTextStripper.getText - hight memory usage
- Closed