Navigation Menu

Skip to content

Commit

Permalink
squid:S2095 - Resources should be closed
Browse files Browse the repository at this point in the history
  • Loading branch information
George Kankava committed Feb 17, 2016
1 parent a3e2045 commit 3e091bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -73,6 +73,7 @@ protected int getMaxIndexKeys() throws SQLException {
ResultSet rs = stmt.executeQuery(sql);
if (!rs.next()) {
stmt.close();
rs.close();
throw new PSQLException(
GT.tr(
"Unable to determine a value for MaxIndexKeys due to missing system catalog data."),
Expand Down
Expand Up @@ -284,6 +284,7 @@ private void fetchFieldMetaData() throws SQLException {
}
}
stmt.close();
rs.close();
// put in cache
_cache.setCache(idFields, fields);
}
Expand Down

0 comments on commit 3e091bd

Please sign in to comment.