-
Bug
-
Resolution: Obsolete
-
Minor
-
None
-
7.1.0.DR9
-
None
In org.jboss.resteasy.spi.FactoryFinder:
The FileInputStream is created, but not closed, this may cause a resource leak:
if (f.exists()) { Properties props = new Properties(); props.load(new FileInputStream(f)); String factoryClassName = props.getProperty(factoryId); return newInstance(factoryClassName, classLoader); }
The BufferedReader is not closed in case of IOException is thrown this may cause resource leak:
if (is != null) { BufferedReader rd = new BufferedReader(new InputStreamReader(is, "UTF-8")); String factoryClassName = rd.readLine(); rd.close(); if (factoryClassName != null && !"".equals(factoryClassName)) { return newInstance(factoryClassName, classLoader); } }
- is cloned by
-
RESTEASY-1574 org.jboss.resteasy.spi.FactoryFinder doesn't close resources
- Resolved