You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ufuk Celebi (JIRA)" <ji...@apache.org> on 2015/08/25 17:11:45 UTC

[jira] [Updated] (FLINK-2538) Potential resource leak in ClassLoaderUtil#getUserCodeClassLoaderInfo()

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

Ufuk Celebi updated FLINK-2538:
-------------------------------
    Affects Version/s: master

> 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)