You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/09/21 16:34:04 UTC

[jira] [Created] (BOOKKEEPER-871) Potential resource leak with unclosed stream in SslServerContextFactory

Ted Yu created BOOKKEEPER-871:
---------------------------------

             Summary: Potential resource leak with unclosed stream in SslServerContextFactory
                 Key: BOOKKEEPER-871
                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-871
             Project: Bookkeeper
          Issue Type: Bug
            Reporter: Ted Yu


In SslServerContextFactory ctor:
{code}
            KeyStore ks = KeyStore.getInstance("pkcs12");
            ks.load(cfg.getCertStream(), cfg.getPassword().toCharArray());
{code}
The stream returned by cfg.getCertStream() is not closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)