Skip to content

Commit 0890ec3

Browse files
committed
[CID-125822] Fix resource leak
1 parent 04fa7e8 commit 0890ec3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

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

63-
try {
64-
InputStream inputStream = new WrappedResponseInputStream(response);
65-
63+
try (InputStream inputStream = new WrappedResponseInputStream(response)) {
6664
if (resultCallback != null) {
6765
responseStreamProcessor.processResponseStream(inputStream, resultCallback);
6866
}

0 commit comments

Comments
 (0)