Fixing dangling pointers in git_mempack_reset git_mempack_reset was leaving free'd pointers in the oidmap.
diff --git a/src/odb_mempack.c b/src/odb_mempack.c
index 3435527..538dfc5 100644
--- a/src/odb_mempack.c
+++ b/src/odb_mempack.c
@@ -154,6 +154,9 @@ void git_mempack_reset(git_odb_backend *_backend)
});
git_array_clear(db->commits);
+
+ git_oidmap_free(db->objects);
+ db->objects = git_oidmap_alloc();
}
static void impl__free(git_odb_backend *_backend)