summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-09 23:40:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-10 10:06:51 (GMT)
commitd5873072054f1c3ae198a9563839e9c7f5660fe1 (patch)
tree7a4160f82557a90188fa590f90c4101fa8e09f4f /object.c
parent90e777f1e20dd6bdc022d5720a9169ea2205d9ad (diff)
downloadgit-d5873072054f1c3ae198a9563839e9c7f5660fe1.zip
git-d5873072054f1c3ae198a9563839e9c7f5660fe1.tar.gz
git-d5873072054f1c3ae198a9563839e9c7f5660fe1.tar.bz2
object.c: free replace map in raw_object_store_clear
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>
Diffstat (limited to 'object.c')
-rw-r--r--object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/object.c b/object.c
index 66cffaf..cdf5200 100644
--- 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;