camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1446870 - /camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
Date Sat, 16 Feb 2013 10:44:28 GMT
Author: davsclaus
Date: Sat Feb 16 10:44:27 2013
New Revision: 1446870

URL: http://svn.apache.org/r1446870
Log:
Must close input stream in zip data format.

Modified:
    camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java

Modified: camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java?rev=1446870&r1=1446869&r2=1446870&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
(original)
+++ camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
Sat Feb 16 10:44:27 2013
@@ -61,7 +61,8 @@ public class ZipDataFormat implements Da
             IOHelper.copy(unzipInput, bos);
             return bos.toByteArray();
         } finally {
-            IOHelper.close(unzipInput);
+            // must close input streams
+            IOHelper.close(is, unzipInput);
         }
     }
 



Mime
View raw message