mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
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>