Files
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
..
2026-08-21 08:17:58 +05:30
2026-08-14 01:35:03 +05:30