diff options
author | Stefan Beller <sbeller@google.com> | 2018-05-17 20:29:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-18 00:53:33 +0200 |
commit | 7a1dc605af0d76b6de5832f1a2c1587e693de6df (patch) | |
tree | 266a6f33a8a764c5d1a56864b686f7be8c1965fb /object.c | |
parent | replace-object.c: remove the_repository from prepare_replace_object (diff) | |
download | git-7a1dc605af0d76b6de5832f1a2c1587e693de6df.tar.xz git-7a1dc605af0d76b6de5832f1a2c1587e693de6df.zip |
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>
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |