jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r620783 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
Date Tue, 12 Feb 2008 12:45:00 GMT
Author: thomasm
Date: Tue Feb 12 04:44:57 2008
New Revision: 620783

URL: http://svn.apache.org/viewvc?rev=620783&view=rev
Log:
JCR-1374 Make sure streams are closed

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java?rev=620783&r1=620782&r2=620783&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
Tue Feb 12 04:44:57 2008
@@ -536,6 +536,7 @@
         Properties prop = new Properties();
         try {
             prop.load(new BufferedInputStream(in));
+            in.close();
         } catch (IOException e) {
             String msg = "Configuration error: Could not read properties '" + databaseType
+ ".properties'";
             log.debug(msg);



Mime
View raw message