Skip to content

Commit

Permalink
Merge pull request libgit2#4602 from pks-t/pks/mempack-memleak
Browse files Browse the repository at this point in the history
odb: mempack: fix leaking objects when freeing mempacks
  • Loading branch information
ethomson authored Mar 29, 2018
2 parents 9e8bc72 + b6276ae commit b3c3415
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/odb_mempack.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ static void impl__free(git_odb_backend *_backend)
{
struct memory_packer_db *db = (struct memory_packer_db *)_backend;

git_mempack_reset(_backend);
git_oidmap_free(db->objects);
git__free(db);
}
Expand Down

0 comments on commit b3c3415

Please sign in to comment.