stat: Fix another memory leak in add_ddir_status_json()
authorBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 05:00:01 +0000 (21:00 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 06:03:59 +0000 (22:03 -0800)
commited24e32c0fcccbf68cbb8ad853f99d171842f270
tree0d426b0d92050d63fed713a44ef47bc259e2f928
parent1bc05e89aacf9e2fa00dc5645f05b4aad9ef9447
stat: Fix another memory leak in add_ddir_status_json()

Only compute the percentile_object and clat_bins_object data structures if
these will be stored inside another JSON object.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
stat.c