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 02:42:33 UTC

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

Close the InputStream instance

(cherry picked from commit d519325)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: b749e6131b7f35f7b43ec6f3d50a223ce840f768
Parents: 6acd9b7
Author: sunlan <su...@apache.org>
Authored: Wed Dec 6 09:13:56 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Dec 6 10:39:49 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/b749e613/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();