You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/12/18 07:22:20 UTC

[2/2] git commit: CAMEL-7075 Fixed the Improper Resource Shutdown or Release issue of FileInputStreamCache with thanks to Leonid

CAMEL-7075 Fixed the Improper Resource Shutdown or Release issue of FileInputStreamCache with thanks to Leonid


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ec54b681
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ec54b681
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ec54b681

Branch: refs/heads/master
Commit: ec54b68188abe6d899979f16d06acbb063e775f8
Parents: e01face
Author: Willem Jiang <wi...@gmail.com>
Authored: Wed Dec 18 14:19:44 2013 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Wed Dec 18 14:19:44 2013 +0800

----------------------------------------------------------------------
 .../org/apache/camel/converter/stream/FileInputStreamCache.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ec54b681/camel-core/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java b/camel-core/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
index c794431..a298f40 100644
--- a/camel-core/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
+++ b/camel-core/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
@@ -88,6 +88,7 @@ public final class FileInputStreamCache extends InputStream implements StreamCac
                 pos += i;
             }
             s.close();
+            fc.close();
         } else {
             IOHelper.copy(getInputStream(), os);
         }