mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-27 18:57:53 +00:00
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> |
||
|---|---|---|
| .. | ||
| podman | ||
| podman-mac-helper | ||
| podman-testing | ||
| quadlet | ||
| rootlessport | ||
| winpath | ||