mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
ExportedLayers left the intermediate create-builder-scratch-source temp file behind after rebased layer files were written, and opened layer InputStreams without closing them when StreamUtils.copy does not close either stream. Delete the source temp in a finally block and use try-with-resources for the apply path so layer files can be deleted reliably. See gh-50919 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>