odb_mempack.c
4.24 KB
-
odb: mempack: fix leaking objects when freeing mempacks · b6276ae0
When a ODB mempack gets free'd, we take no measures at all to free its contents, most notably the objects added to the database, resulting in a memory leak. Call `git_mempack_reset` previous to freeing the ODB structures themselves, which takes care of releasing all associated data structures.
Patrick Steinhardt committed