[ https://issues.apache.org/jira/browse/SLIDER-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373798#comment-15373798 ]
ASF subversion and git services commented on SLIDER-1152: --------------------------------------------------------- Commit 2f63856e7bfb373c3b9503c8978e143d2235efee in incubator-slider's branch refs/heads/develop from [~gsaha] [ https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;h=2f63856 ] 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 > > 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)