Tilman Hausherr created PDFBOX-3008:
---------------------------------------

             Summary: Memory leak in preflight
                 Key: PDFBOX-3008
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3008
             Project: PDFBox
          Issue Type: Bug
          Components: Preflight
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr


PreflightParser has this:
{code}
    public PreflightParser(DataSource dataSource) throws IOException
    {
        // TODO move file handling outside of the parser
        super(new 
RandomAccessBufferedFileInputStream(dataSource.getInputStream()));
        this.setLenient(false);
        this.originalDocument = dataSource;
    }
{code}
The TODO message looks like a design issue, but it is much worse: the 
RandomAccessBufferedFileInputStream is never closed. The file parameter 
constructor has the same problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to