mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 19:59:33 +00:00
Fixing dangling pointers in git_mempack_reset
git_mempack_reset was leaving free'd pointers in the oidmap.
This commit is contained in:
parent
6c21211c38
commit
8e177b2bb8
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user