git/odb
Patrick Steinhardt d527bffce5 odb/packed: fix memory leaks when freeing source
When freeing a "packed" source we don't close either its packs nor its
multi-pack indices. This can cause memory leaks in case we create an
ad-hoc packed source. As we used to always link packed sources to the
main object database we never noticed this issue until now, but it's
going to surface in subsequent commits where we stop linking them.

Plug the memory leaks by closing the source first.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-09-02 10:41:54 -07:00
..
source-files.c Merge branch 'ps/odb-pluggable-pack-generation' 2026-08-31 08:25:00 -07:00
source-files.h Merge branch 'ps/odb-make-creation-pluggable' 2026-08-20 07:30:52 -07:00
source-inmemory.c Merge branch 'ps/odb-generic-corrupt-objects' 2026-08-31 08:24:59 -07:00
source-inmemory.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-loose.c Merge branch 'ps/odb-generic-corrupt-objects' 2026-08-31 08:24:59 -07:00
source-loose.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-packed.c odb/packed: fix memory leaks when freeing source 2026-09-02 10:41:54 -07:00
source-packed.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.c odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.h Merge branch 'ps/odb-pluggable-pack-generation' 2026-08-31 08:25:00 -07:00
streaming.c Merge branch 'ps/odb-eagerly-load-alternates' 2026-08-31 08:24:59 -07:00
streaming.h odb/streaming: unify function names to create new streams 2026-08-05 09:42:50 -07:00
transaction.c Merge branch 'jt/receive-pack-pluggable-writes' 2026-08-31 08:25:00 -07:00
transaction.h Merge branch 'jt/receive-pack-pluggable-writes' 2026-08-31 08:25:00 -07:00