Skip to content

Commit 91f6223

Browse files
committed
fix(test): free the fixture project name before reindexing
Three language fixtures assign cbm_project_name_from_path into lp->project each time they open an indexed store. Teardown frees the last one, so a fixture that indexes more than once dropped every earlier heap name — 68 allocations across the run, which the macOS leak lane reports at process exit. Pre-existing rather than introduced here: none of these files or fqn.c are in this branch's diff, and the leak lane passed on the previous PR. Adding a suite shifted what the leak job sees, which is how it surfaced. Fixing it here rather than recording it, since a gate that only stays green by composition accident is not a gate. Freeing before reassigning also makes the ownership obvious at the point it matters, instead of relying on the reader noticing the teardown three functions away. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 80d5279 commit 91f6223

3 files changed

Lines changed: 600 additions & 677 deletions

File tree

0 commit comments

Comments
 (0)