public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] oidmap: make entry cleanup explicit in oidmap_clear
@ 2026-01-15 13:16 Seyi Kufoiji
  2026-01-15 13:16 ` [PATCH 1/1] " Seyi Kufoiji
  0 siblings, 1 reply; 2+ messages in thread
From: Seyi Kufoiji @ 2026-01-15 13:16 UTC (permalink / raw)
  To: git; +Cc: Seyi Kufoiji

Hello,

This small patch improves the clarity and safety of oidmap cleanup by
making entry destruction explicit in oidmap_clear().

Previously, oidmap_clear() implicitly relied on callers to understand
how and when stored entries were freed. This change introduces an
explicit cleanup path, making ownership and lifecycle of oidmap entries
clearer and less error-prone.

In addition to the implementation change, unit tests are added to
exercise the cleanup semantics and verify correct behavior during map
teardown.

Thanks,
Seyi

Seyi Kufoiji (1):
  oidmap: make entry cleanup explicit in oidmap_clear

 oidmap.c                | 23 ++++++++++++++++++++---
 oidmap.h                | 15 +++++++++++++++
 t/unit-tests/u-oidmap.c | 41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+), 3 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-15 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15 13:16 [PATCH 0/1] oidmap: make entry cleanup explicit in oidmap_clear Seyi Kufoiji
2026-01-15 13:16 ` [PATCH 1/1] " Seyi Kufoiji

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox