X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=refs.c;h=09a2c87fc23e4298bb3bcddc5c2cc649c3206a04;hb=b39c53e662b97108ee1bda72076630d9d0e56211;hp=fac6548001068b15739065d04e343c8730e8c3de;hpb=4b7f59af2a5b072a0a3950c956842e4d6223a167;p=git.git diff --git a/refs.c b/refs.c index fac654800..09a2c87fc 100644 --- a/refs.c +++ b/refs.c @@ -869,6 +869,7 @@ static int repack_without_ref(const char *refname) die("too long a refname '%s'", list->name); write_or_die(fd, line, len); } + close(fd); return commit_lock_file(&packlock); }