mirror of
https://github.com/git/git.git
synced 2024-10-28 04:49:43 +01:00
object.c: clear replace map before freeing it
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
74fd0705bb
commit
7a1dc605af
1 changed files with 2 additions and 0 deletions
2
object.c
2
object.c
|
@ -480,6 +480,8 @@ void raw_object_store_clear(struct raw_object_store *o)
|
|||
{
|
||||
FREE_AND_NULL(o->objectdir);
|
||||
FREE_AND_NULL(o->alternate_db);
|
||||
|
||||
oidmap_free(o->replace_map, 1);
|
||||
FREE_AND_NULL(o->replace_map);
|
||||
|
||||
free_alt_odbs(o);
|
||||
|
|
Loading…
Reference in a new issue