hook: plug a new memory leak
commitee052533bb81aca6f94c0961222bed2a19789dae
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 20 May 2024 20:22:00 +0000 (20 20:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 May 2024 19:33:08 +0000 (21 12:33 -0700)
tree299ff53012e520aa349d109fc91423d14cdcbb90
parentd17d18f85a2d41a307d48c54b9da942cca530c1e
hook: plug a new memory leak

In 8db1e8743c0 (clone: prevent hooks from running during a clone,
2024-03-28), I introduced an inadvertent memory leak that was
unfortunately not caught before v2.45.1 was released. Here is a fix.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
hook.c