stat: Fix a memory leak in add_ddir_status_json()
authorBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 04:42:27 +0000 (20:42 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 05:45:06 +0000 (21:45 -0800)
commit1bc05e89aacf9e2fa00dc5645f05b4aad9ef9447
tree8bec006ab6e2d2dbd64d350d739c428a9ed83dd9
parent283feb79db4b21f8b447e62a8635dc5124904151
stat: Fix a memory leak in add_ddir_status_json()

This patch fixes the following Coverity complaint:

CID 173000 (#1 of 1): Resource leak (RESOURCE_LEAK)
18. leaked_storage: Variable ovals going out of scope leaks the storage it points to.

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