diff options
Diffstat (limited to 'builtin-send-pack.c')
-rw-r--r-- | builtin-send-pack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-send-pack.c b/builtin-send-pack.c index 2478e1851..651628871 100644 --- a/builtin-send-pack.c +++ b/builtin-send-pack.c @@ -97,6 +97,7 @@ static int pack_objects(int fd, struct ref *refs, struct extra_have_objects *ext free(buf); close(po.out); po.out = -1; + close(fd); } if (finish_command(&po)) @@ -375,6 +376,9 @@ static void print_helper_status(struct ref *ref) static int sideband_demux(int in, int out, void *data) { int *fd = data; +#ifndef WIN32 + close(fd[1]); +#endif int ret = recv_sideband("send-pack", fd[0], out); close(out); return ret; |