Message ID | pull.1398.git.git.1734492752951.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | bundle-url: always close child_out before leaving the function | expand |
diff --git a/bundle-uri.c b/bundle-uri.c index cdf9e4f9e1d..23dfc1999b5 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -337,10 +337,10 @@ static int download_https_uri_to_file(const char *file, const char *uri) cleanup: if (child_in) fclose(child_in); - if (finish_command(&cp)) - return 1; if (child_out) fclose(child_out); + if (finish_command(&cp)) + return 1; return result; }