Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
object.c: clear replace map before freeing it
author
Stefan Beller
<sbeller@google.com>
Thu, 17 May 2018 18:29:57 +0000
(11:29 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 17 May 2018 22:53:33 +0000
(07:53 +0900)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
74fd070
)
diff --git
a/object.c
b/object.c
index cdf520084dfd4bd86671114bf7a5425f3fd36783..97245fdea25c2d1342e0d4e791d82e2aeadaed7c 100644
(file)
--- a/
object.c
+++ b/
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);