[PATCH 1/2] object.c: free replace map in raw_object_store_clear
- From
Stefan Beller <sbeller@google.com>
- Date
- May 17, 2018, 18:29 UTC
- Message-ID
- <20180517182959.22961-2-sbeller@google.com>
- In-Reply-To
- <20180517182959.22961-1-sbeller@google.com>
The replace map for objects was missed to free in the object store in the conversion of c1274495 ("replace-object: eliminate replace objects prepared flag", 2018-04-11). We also missed to free the replaced objects that are put into the replace map in that whole series.
Signed-off-by: Stefan Beller <sbeller@google.com> --- object.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/object.c b/object.c index 66cffaf6e51..97245fdea25 100644 --- a/object.c +++ b/object.c @@ -481,6 +481,9 @@ 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); o->alt_odb_tail = NULL;
-- 2.17.0.582.gccdcbd54c44.dirty