We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30e8180 + 49ecfa1 commit bd8e338Copy full SHA for bd8e338
1 file changed
builtin/receive-pack.c
@@ -828,8 +828,11 @@ static const char *unpack(int err_fd)
828
: 0);
829
830
hdr_err = parse_pack_header(&hdr);
831
- if (hdr_err)
+ if (hdr_err) {
832
+ if (err_fd > 0)
833
+ close(err_fd);
834
return hdr_err;
835
+ }
836
snprintf(hdr_arg, sizeof(hdr_arg),
837
"--pack_header=%"PRIu32",%"PRIu32,
838
ntohl(hdr.hdr_version), ntohl(hdr.hdr_entries));
0 commit comments