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 04:21:24 UTC

[2/4] groovy git commit: Close the InputStream instance

Close the InputStream instance

(cherry picked from commit d425df3)


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

Branch: refs/heads/GROOVY_2_4_X
Commit: bba0dd25d7f5272110df198f98a70c17eed5b39b
Parents: a2c130f
Author: sunlan <su...@apache.org>
Authored: Wed Dec 6 09:13:56 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Dec 6 12:20:08 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/bba0dd25/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 d9d26cf..02204c5 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();