X Tutup
Skip to content

Commit 7eeeae7

Browse files
committed
Fix resource leak
1 parent b11e3fe commit 7eeeae7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/github/dockerjava/jaxrs/async/AbstractCallbackNotifier.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public Void call() throws Exception {
6060
return null;
6161
}
6262

63-
try {
64-
InputStream inputStream = new WrappedResponseInputStream(response);
63+
try (InputStream inputStream = new WrappedResponseInputStream(response)) {
6564

6665
if (resultCallback != null) {
6766
responseStreamProcessor.processResponseStream(inputStream, resultCallback);

0 commit comments

Comments
 (0)
X Tutup