fix(catfile): only close the process once
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
The close func is called multiple times, which causes inconsistencies, mostly visible in incorrect metrics.
Fixes: #6651 (closed)
Signed-off-by: Thomas Way thomas@6f.io
Edited by 🤖 GitLab Bot 🤖