MultiReleaseContent leaks manifest InputStream
@@ -63,7 +63,8 @@ public class MultiReleaseContent implements Content
{
try
{
- InputStream manifestStream = content.getEntryAsStream("META-INF/MANIFEST.MF");
+ try (InputStream manifestStream = content.getEntryAsStream("META-INF/MANIFEST.MF"))
+ {
if (manifestStream != null)
{
if ("true".equals(new Manifest(manifestStream).getMainAttributes().getValue("Multi-Release")))
@@ -72,6 +73,7 @@ public class MultiReleaseContent implements Content
}
}
}
+ }
catch (Exception ex)
{
}
