free(buf);
close(po.out);
po.out = -1;
+ close(fd);
}
if (finish_command(&po))
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;