[ 
https://issues.apache.org/jira/browse/SLIDER-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15391106#comment-15391106
 ] 

ASF subversion and git services commented on SLIDER-1152:
---------------------------------------------------------

Commit 481bd3209d6064eb913c0e21779a427fb49216b8 in incubator-slider's branch 
refs/heads/develop from [~gsaha]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;h=481bd32 ]

SLIDER-1152 Resource leaks found in code


> Resource leaks found in code
> ----------------------------
>
>                 Key: SLIDER-1152
>                 URL: https://issues.apache.org/jira/browse/SLIDER-1152
>             Project: Slider
>          Issue Type: Bug
>          Components: other
>    Affects Versions: Slider 0.91
>            Reporter: Gour Saha
>            Assignee: Gour Saha
>             Fix For: Slider 1.0.0
>
>
> Resource leaks were found in the following files -
> h6. slider-core/src/main/java/org/apache/slider/client/SliderClient.java
> {code}
> 1184    IOUtils.write(keystore, new FileOutputStream(storeFile));
> {code}
> leaked_resource: Failing to save or close resource created by new 
> java.io.FileOutputStream(storeFile) leaks it.
> h6. 
> slider-core/src/main/java/org/apache/slider/api/proto/RestTypeMarshalling.java
> {code}
> 111    InputStream is = new FileInputStream(securityStore.getFile());
> 112    return IOUtils.toByteArray(is);
> {code}
> noescape: Resource _*is*_ is not closed or saved in toByteArray.
> leaked_resource: Variable is going out of scope leaks the resource it refers 
> to.



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

Reply via email to