diff options
Diffstat (limited to 'pack-write.c')
-rw-r--r-- | pack-write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pack-write.c b/pack-write.c index ca9e63be18..6203d37ac5 100644 --- a/pack-write.c +++ b/pack-write.c @@ -371,5 +371,7 @@ void finish_tmp_packfile(char *name_buffer, if (rename(idx_tmp_name, name_buffer)) die_errno("unable to rename temporary index file"); + *end_of_name_prefix = '\0'; + free((void *)idx_tmp_name); } |