spiegel_podman/cmd
Tushar Verma fd3937cf62 build: do not leak context tmpdir
ParseBuildOpts downloads a URL or stdin context into a temp dir and
stores it in TmpDirToClose, but the caller only removes that when
ParseBuildOpts returns successfully. Every error return after the
download leaks it, including the authfile check reproduced in #22642
and a plain build of a git URL with no Containerfile, which leaves the
whole clone behind.

Use the same succeeded guard TempDirForURL itself uses, one level up so
it covers both tmpdir call sites and the logfile next to them.

Fixes: #22642
Signed-off-by: Tushar Verma <tusharmyself06@gmail.com>
2026-08-21 08:17:58 +05:30
..
podman build: do not leak context tmpdir 2026-08-21 08:17:58 +05:30
podman-mac-helper Merge pull request #29511 from vishnukothakapu/perf-regexp-mustcompile 2026-08-17 12:53:04 +02:00
podman-testing Fix staticcheck SA4023 warnings in call.go and sign.go 2026-06-12 09:53:20 +02:00
quadlet added errorlint 2026-08-14 01:35:03 +05:30
rootlessport Clean up outdated slirp4netns references in comments 2026-04-13 09:05:09 -04:00
winpath Fix GOOS=windows prealloc linter warnings 2026-02-11 11:41:11 -08:00