[PATCH 5.7 369/477] tools, bpftool: Fix memory leak in codegen error cases