]> git.ipfire.org Git - thirdparty/git.git/commit
download_https_uri_to_file(): do not leak fd upon failure
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 5 Jul 2026 08:24:20 +0000 (08:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Jul 2026 16:12:09 +0000 (09:12 -0700)
commita62c2a26fcedb635046f8d072fc9d9629e6e87ba
treee75a27134e64e77ae39c39e1b4f9ee3ef06932f6
parentbd58327406c6868b92fb1b61d85b7430839042d4
download_https_uri_to_file(): do not leak fd upon failure

When the `git-remote-https` command fails, we do not want to leak
`child_out`.

Pointed out by Coverity.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle-uri.c