]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ne/alloc-free-and-null' into next
authorJunio C Hamano <gitster@pobox.com>
Fri, 12 Sep 2025 17:42:35 +0000 (10:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Sep 2025 17:42:35 +0000 (10:42 -0700)
The clear_alloc_state() API function was not fully clearing the
structure for reuse, but since nobody reuses it, replace it with a
variant that frees the structure as well, making the callers simpler.

* ne/alloc-free-and-null:
  alloc: fix dangling pointer in alloc_state cleanup


Trivial merge