Fixing dangling pointers in git_mempack_reset

git_mempack_reset was leaving free'd pointers in the oidmap.
This commit is contained in:
Bryan Woods 2015-09-10 14:44:52 -07:00
parent 6c21211c38
commit 8e177b2bb8

View File

@ -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)