Skip to content

Commit

Permalink
Merge pull request #309 from rsandell/JENKINS-71970
Browse files Browse the repository at this point in the history
[JENKINS-71970] Potentially solve memory leak
  • Loading branch information
jglick authored Sep 11, 2023
2 parents ba0aad0 + 13dbecc commit 7cd79fa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private Object readResolve() {
@Override public void onClosed(Channel channel, IOException cause) {
LOGGER.fine(() -> "closing " + channel.getName());
cos.close(channel, cause);
channel.removeListener(this);
}
});
return new BufferedBuildListener(cos);
Expand Down

0 comments on commit 7cd79fa

Please sign in to comment.