diff options
-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 6019eac918..f6e99f5690 100644 --- a/builtin-send-pack.c +++ b/builtin-send-pack.c @@ -98,6 +98,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)) @@ -226,6 +227,9 @@ static void print_helper_status(struct ref *ref) static int sideband_demux(int in, int out, void *data) { int *fd = data; +#ifdef NO_PTHREADS + close(fd[1]); +#endif int ret = recv_sideband("send-pack", fd[0], out); close(out); return ret; |