Skip to content

Commit

Permalink
ImageServiceImpl: Close input stream after reading image info
Browse files Browse the repository at this point in the history
  • Loading branch information
schmika committed Jun 21, 2024
1 parent 80321ee commit 24fa9e9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ public void readImageInfo(
} finally {
metrics.clearTimer(metricKey);
if (r != null) {
if (r.getInput() instanceof ImageInputStream) {
((ImageInputStream) r.getInput()).close();
}
r.dispose();
}
}
Expand Down

0 comments on commit 24fa9e9

Please sign in to comment.