]
Ilia Vassilev reassigned ELY-830:
---------------------------------
Assignee: Ilia Vassilev (was: Darran Lofthouse)
Coverity static analysis: Resource leak in KeyStoreCredentialStore
(Elytron)
----------------------------------------------------------------------------
Key: ELY-830
URL:
https://issues.jboss.org/browse/ELY-830
Project: WildFly Elytron
Issue Type: Bug
Reporter: Josef Cacek
Assignee: Ilia Vassilev
Priority: Critical
Labels: static_analysis
Coverity static-analysis scan found resource leak in
{{KeyStoreCredentialStore.load(String)}} method.
https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=68039...
The method calls
{code}
keyStore.load(Files.newInputStream(location), getStorePassword(protectionParameter));
{code}
The resource {{java.nio.file.Files.newInputStream(location)}} is not closed in the
{{load}} method.