You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Gour Saha (JIRA)" <ji...@apache.org> on 2016/07/12 22:09:20 UTC
[jira] [Created] (SLIDER-1152) Resource leaks found in code
Gour Saha created SLIDER-1152:
---------------------------------
Summary: 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
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)