X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=949af5edd49ffa05dfa16bbef70c7d1037de8261;hb=b5f3adf9e1e40c7bdb76a9e433aa580f7eead740;hp=356083e25ff5e36359cafd8e7fedc158634e2d68;hpb=61850e56907c0d3d41be27bd59f573984c8cf00d;p=fio.git diff --git a/stat.c b/stat.c index 356083e2..949af5ed 100644 --- a/stat.c +++ b/stat.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -1698,6 +1699,7 @@ static struct json_object *show_thread_status_json(struct thread_stat *ts, if (je) { json_object_add_value_int(root, "eta", je->eta_sec); json_object_add_value_int(root, "elapsed", je->elapsed_sec); + free(je); } if (opt_list)