diff options
| author | Paul Tarjan <github@paulisageek.com> | 2026-04-15 13:27:27 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-15 08:44:32 -0700 |
| commit | 8b1d96554261aeef649bb3f36f9812a3c6e3f4da (patch) | |
| tree | b545e0c494c0be1058977516a7087e8c2b3adf19 /git-commit-script | |
| parent | e21be6cd45db554862f40c90b385c1bc465c8335 (diff) | |
fsmonitor: fix hashmap memory leak in fsmonitor_run_daemon
The `state.cookies` hashmap is initialized during daemon startup but
never freed during cleanup in the `done:` label of
fsmonitor_run_daemon(). The cookie entries also have names allocated
via strbuf_detach() that must be freed individually.
Iterate the hashmap to free each cookie name, then call
hashmap_clear_and_free() to release the entries and table.
Signed-off-by: Paul Tarjan <github@paulisageek.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions
