Files
spring-boot/buildpack
wantaek 58a96f9a00 Delete temporary file when ExportedImageTar construction fails
ExportedImageTar creates a temporary file in its constructor and then
copies the exported image into it and builds the layer factory. If
either step throws, the constructor fails before the instance is
assigned, so the try-with-resources statement that uses it never calls
close() and the docker-layers- temporary file is left behind.

Delete the temporary file when the constructor fails so its cleanup
matches close().

See gh-51117

Signed-off-by: wantaek <wantaekchoi@gmail.com>
2026-07-27 09:31:38 +02:00
..