diff --git a/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/internal/AbstractLoadPlanBasedLoader.java b/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/internal/AbstractLoadPlanBasedLoader.java index 1200e81946..8e3b76e44f 100644 --- a/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/internal/AbstractLoadPlanBasedLoader.java +++ b/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/internal/AbstractLoadPlanBasedLoader.java @@ -141,10 +141,6 @@ public abstract class AbstractLoadPlanBasedLoader { if ( wrapper != null ) { final JdbcCoordinator jdbcCoordinator = session.getJdbcCoordinator(); final ResourceRegistry resourceRegistry = jdbcCoordinator.getResourceRegistry(); - resourceRegistry.release( - wrapper.getResultSet(), - wrapper.getStatement() - ); resourceRegistry.release( wrapper.getStatement() ); jdbcCoordinator.afterStatementExecution(); }