Commit c6a8571d authored by Daryl Herzmann's avatar Daryl Herzmann Committed by akrherz

OF-52: close prepared statements


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11187 b35dd754-fafc-0310-a699-88a17e54d16e
parent 308dd561
......@@ -298,6 +298,7 @@ public class PubSubPersistenceManager {
pstmt.setString(25, service.getServiceID());
pstmt.setString(26, encodeNodeID(node.getNodeID()));
pstmt.executeUpdate();
pstmt.close();
// Remove existing JIDs associated with the the node
pstmt = con.prepareStatement(DELETE_NODE_JIDS);
......@@ -519,6 +520,7 @@ public class PubSubPersistenceManager {
loadSubscriptions(service, nodes, rs);
}
rs.close();
pstmt.close();
// TODO We may need to optimize memory consumption and load items on-demand
// Load published items of all nodes
......@@ -530,6 +532,7 @@ public class PubSubPersistenceManager {
loadItems(nodes, rs);
}
rs.close();
pstmt.close();
}
catch (SQLException sqle) {
Log.error(sqle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment