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

Ufuk Celebi updated FLINK-2538:
-------------------------------
    Fix Version/s: 0.10

> Potential resource leak in ClassLoaderUtil#getUserCodeClassLoaderInfo()
> -----------------------------------------------------------------------
>
>                 Key: FLINK-2538
>                 URL: https://issues.apache.org/jira/browse/FLINK-2538
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: master
>            Reporter: Ted Yu
>            Priority: Minor
>             Fix For: 0.10
>
>
> In ClassLoaderUtil#getUserCodeClassLoaderInfo() around line 76:
> {code}
>               else {
>                 try {
>                   new JarFile(filePath);
>                   bld.append(" (valid JAR)");
>                 }
>                 catch (Exception e) {
>                   bld.append(" (invalid JAR: 
> ").append(e.getMessage()).append(')');
>                 }
>               }
> {code}
> The JarFile isn't closed before returning, leading to potential resource leak.



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

Reply via email to