Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call close() on closeable ClientHttpResponse within BufferingClientHttpResponseWrapper.java #1668

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Conversation

luc-leclerc
Copy link
Contributor

Clear resources

Description

On exception and close operation, only 1 of 2 close-able resources are closed.

Motivation and Context

It looks like it could lead to memory leak.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@kasmarian
Copy link
Member

👍

@kasmarian kasmarian merged commit 78d0cd2 into zalando:main Nov 11, 2023
2 checks passed
@kasmarian
Copy link
Member

@luc-leclerc thank you for the fix!

@luc-leclerc luc-leclerc deleted the finally-lose branch November 12, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants