Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fast-import: close pack before unlinking it
[gitweb.git]
/
fast-import.c
diff --git
a/fast-import.c
b/fast-import.c
index 5473cd4d626c1260cf1a192ab05cc63c37a8fbcb..13b36147a46390aa9fe3461eead08be7dadc35cd 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-982,8
+982,10
@@
static void end_packfile(void)
pack_id++;
}
- else
+ else {
+ close(old_p->pack_fd);
unlink(old_p->pack_name);
+ }
free(old_p);
/* We can't carry a delta across packfiles. */