Commit 7e53d83c by Bryan Woods Committed by Carlos Martín Nieto

Fixing dangling pointers in git_mempack_reset

git_mempack_reset was leaving free'd pointers in the oidmap.
parent d960fb32
...@@ -154,6 +154,9 @@ void git_mempack_reset(git_odb_backend *_backend) ...@@ -154,6 +154,9 @@ void git_mempack_reset(git_odb_backend *_backend)
}); });
git_array_clear(db->commits); git_array_clear(db->commits);
git_oidmap_free(db->objects);
db->objects = git_oidmap_alloc();
} }
static void impl__free(git_odb_backend *_backend) static void impl__free(git_odb_backend *_backend)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment