diff --git a/src/main/org/apache/tools/ant/taskdefs/Execute.java b/src/main/org/apache/tools/ant/taskdefs/Execute.java index 84556777c..0ab729bc5 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Execute.java +++ b/src/main/org/apache/tools/ant/taskdefs/Execute.java @@ -536,6 +536,13 @@ public class Execute { setExitValue(process.exitValue()); } catch (InterruptedException e) { process.destroy(); + } finally { + try { + process.getInputStream().close(); + process.getOutputStream().close(); + process.getErrorStream().close(); + } catch (IOException eyeOhEx) { + } } }