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
@@ -378,7 +378,7 @@ cleanup:
378 if (child_in)
379 fclose(child_in);
380 if (finish_command(&cp))
381 - return 1;
381 + result = 1;
382 if (child_out)
383 fclose(child_out);
384 return result;