Code

Merge branch 'mk/maint-parse-careful'
[git.git] / receive-pack.c
index f5440ff4d439521edc39bc7a481911ebd7ce0d0c..0ca2a80bf00b76a2b07b749bb1ff7cb77d44f7ee 100644 (file)
@@ -138,6 +138,7 @@ static int run_hook(const char *hook_name)
                                break;
                }
        }
+       close(proc.in);
        return hook_status(finish_command(&proc), hook_name);
 }
 
@@ -424,6 +425,7 @@ static const char *unpack(void)
                if (start_command(&ip))
                        return "index-pack fork failed";
                pack_lockfile = index_pack_lockfile(ip.out);
+               close(ip.out);
                status = finish_command(&ip);
                if (!status) {
                        reprepare_packed_git();