[PATCH 5.15 502/917] bpftool: Avoid leaking the JSON writer prepared for program metadata