[demo] summary_json: call fclose() on json output

This commit is contained in:
nick black 2025-01-21 18:13:25 -05:00
parent c1833eded7
commit 58f08c62ee
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -384,6 +384,7 @@ summary_json(FILE* f, const char* spec, int rows, int cols){
results[i].stats.renders, results[i].timens, i < strlen(spec) - 1 ? "," : "") < 0); results[i].stats.renders, results[i].timens, i < strlen(spec) - 1 ? "," : "") < 0);
} }
ret |= (fprintf(f, "}}}\n") < 0); ret |= (fprintf(f, "}}}\n") < 0);
ret |= fclose(f);
return ret; return ret;
} }