spiegel_podman/cmd/podman/common
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
..
build.go build: do not leak context tmpdir 2026-08-21 08:17:58 +05:30
completion.go Merge pull request #29145 from ROKUMATE/feat-playkube-warn-unknown-keys 2026-08-06 18:21:03 -04:00
completion_test.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
create.go docs: fix --image-volume default and accepted values 2026-06-29 12:35:25 +02:00
create_opts.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
create_test.go cmd/podman: replace strings.Split with strings.Cut 2026-05-22 12:36:26 -07:00
default.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
format.go ps: format labels as comma separated key=value for Docker compatibility 2026-04-30 18:04:49 +02:00
inspect.go Add artifact fallback to podman inspect command 2025-10-02 06:52:32 -04:00
netflags.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
sign.go Fix staticcheck SA4023 warnings in call.go and sign.go 2026-06-12 09:53:20 +02:00
term.go remove github.com/buger/goterm dependency 2025-03-31 19:17:55 +02:00