From 071d9768d84edf694902ab37de853d3389ac5dbc Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 1 Feb 2008 16:33:58 +0000 Subject: [PATCH] BF [ 1874419 ] JDBC Statement not close in a finally block --- base/src/org/compiere/model/MRule.java | 4 ++-- base/src/org/compiere/model/MTableScriptValidator.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/MRule.java b/base/src/org/compiere/model/MRule.java index 78aa11ebc4..ad2bd59245 100644 --- a/base/src/org/compiere/model/MRule.java +++ b/base/src/org/compiere/model/MRule.java @@ -98,7 +98,7 @@ public class MRule extends X_AD_Rule } finally { DB.close(rs, pstmt); - pstmt = null; + rs = null; pstmt = null; } if (retValue != null) @@ -137,7 +137,7 @@ public class MRule extends X_AD_Rule } finally { DB.close(rs, pstmt); - pstmt = null; + rs = null; pstmt = null; } if (rules != null && rules.size() > 0) diff --git a/base/src/org/compiere/model/MTableScriptValidator.java b/base/src/org/compiere/model/MTableScriptValidator.java index 0f76a0ec1a..ec74af0c37 100644 --- a/base/src/org/compiere/model/MTableScriptValidator.java +++ b/base/src/org/compiere/model/MTableScriptValidator.java @@ -80,7 +80,7 @@ public class MTableScriptValidator extends X_AD_Table_ScriptValidator } finally { DB.close(rs, pstmt); - pstmt = null; + rs = null; pstmt = null; } if (mvrs != null && mvrs.size() > 0)