[ 
https://issues.apache.org/jira/browse/FLINK-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephan Ewen resolved FLINK-2649.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10

Fixed via 5e6175d6eadf62d7493e0b2d3c925c802f95ae69

> Potential resource leak in JarHelper#unjar()
> --------------------------------------------
>
>                 Key: FLINK-2649
>                 URL: https://issues.apache.org/jira/browse/FLINK-2649
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>             Fix For: 0.10
>
>
> {code}
>     dest = new BufferedOutputStream(fos, BUFFER_SIZE);
>     while ((count = jis.read(data, 0, BUFFER_SIZE)) != -1) {
>     dest.write(data, 0, count);
>     }
>     dest.flush();
>     dest.close();
> {code}
> The close() of dest should be enclosed in finally block.



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

Reply via email to