Skip to content

Commit

Permalink
[JENKINS-71970] Potentially solve memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell committed Sep 11, 2023
1 parent ba0aad0 commit 13dbecc
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 13dbecc

Please sign in to comment.