You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/12/06 03:38:22 UTC

[2/5] groovy git commit: Close the InputStream instance (cherry picked from commit b749e61)

Close the InputStream instance
(cherry picked from commit b749e61)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: d425df3a0703236e60bb8139b087ce192d4e41ea
Parents: 7c09249
Author: sunlan <su...@apache.org>
Authored: Wed Dec 6 09:13:56 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Dec 6 11:36:29 2017 +0800

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/runtime/ProcessGroovyMethods.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/d425df3a/src/main/org/codehaus/groovy/runtime/ProcessGroovyMethods.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/runtime/ProcessGroovyMethods.java b/src/main/org/codehaus/groovy/runtime/ProcessGroovyMethods.java
index bb70d86..7348d3f 100644
--- a/src/main/org/codehaus/groovy/runtime/ProcessGroovyMethods.java
+++ b/src/main/org/codehaus/groovy/runtime/ProcessGroovyMethods.java
@@ -405,6 +405,7 @@ public class ProcessGroovyMethods extends DefaultGroovyMethodsSupport {
                     throw new GroovyRuntimeException("exception while reading process stream", e);
                 } finally {
                     closeWithWarning(out);
+                    closeWithWarning(in);
                 }
             }
         }).start();