fix mi_stat_get_json signature

This commit is contained in:
Daan Leijen 2025-03-02 15:39:08 -08:00
parent b319156c4f
commit c910750bbe
3 changed files with 5 additions and 5 deletions

View file

@ -331,9 +331,9 @@ int main(int argc, char** argv) {
#ifndef NDEBUG
mi_debug_show_arenas();
mi_collect(true);
const char* json = mi_stats_get_json(0, NULL);
char* json = mi_stats_get_json(0, NULL);
if (json != NULL) {
puts(json);
fputs(json,stderr);
mi_free(json);
}
#endif