@leroysheep / CrazyWebTemps / commits / a62c2a26fc

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>

Johannes Schindelin committed Jul 5, 2026 at 08:24 UTC a62c2a26fcedb635046f8d072fc9d9629e6e87ba
1 file changed +1 -1
bundle-uri.c
+1 -1
index 3b2e347288..34fa452e76 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -378,7 +378,7 @@ cleanup: if (child_in) fclose(child_in); if (finish_command(&cp)) - return 1; + result = 1; if (child_out) fclose(child_out); return result;