object.c: free replace map in raw_object_store_clear
authorStefan Beller <sbeller@google.com>
Wed, 9 May 2018 23:40:58 +0000 (16:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 May 2018 10:06:51 +0000 (19:06 +0900)
The replace map for objects was missed to free in the object store in
the conversion of 174774cd519 (Merge branch 'sb/object-store-replace',
2018-05-08)

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c
index 66cffaf6e516f181fa391ddab125fdc16cc71cb5..cdf520084dfd4bd86671114bf7a5425f3fd36783 100644 (file)
--- a/object.c
+++ b/object.c
@@ -480,6 +480,7 @@ void raw_object_store_clear(struct raw_object_store *o)
 {
        FREE_AND_NULL(o->objectdir);
        FREE_AND_NULL(o->alternate_db);
+       FREE_AND_NULL(o->replace_map);
 
        free_alt_odbs(o);
        o->alt_odb_tail = NULL;