shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalle Korhonen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SHIRO-227) Leak in getPermissions method of JdbcRealm
Date Sat, 12 Feb 2011 22:17:57 GMT

     [ https://issues.apache.org/jira/browse/SHIRO-227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kalle Korhonen resolved SHIRO-227.
----------------------------------

    Resolution: Fixed

Thanks for the patch!

> Leak in getPermissions method of JdbcRealm
> ------------------------------------------
>
>                 Key: SHIRO-227
>                 URL: https://issues.apache.org/jira/browse/SHIRO-227
>             Project: Shiro
>          Issue Type: Bug
>            Reporter: Jared Bunting
>            Assignee: Kalle Korhonen
>         Attachments: JdbcRealm_Leak_Fix.patch
>
>
> It appears that the JdbcRealm.getPermissions is leaking PreparedStatements and ResultSets.
 These are both created inside a for loop, but the finally block with close statements is
outside of the loop.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message