start_command(), .in/.out/.err = -1: Callers must close the file descriptor
[gitweb.git] / bundle.c
index bd12ec8537781c5c82e77637312ccabb708d5040..4352ce817f0488face752bd40d630255fe6ca186 100644 (file)
--- a/bundle.c
+++ b/bundle.c
@@ -333,6 +333,7 @@ int create_bundle(struct bundle_header *header, const char *path,
                write_or_die(rls.in, sha1_to_hex(object->sha1), 40);
                write_or_die(rls.in, "\n", 1);
        }
+       close(rls.in);
        if (finish_command(&rls))
                return error ("pack-objects died");