From: Daniel P. Berrangé <[email protected]> The block_acct_cleanup method failed to release memory associated with block histograms.
Fixes: b741ae7417 (block/accounting: introduce latency histogram) Signed-off-by: Daniel P. Berrangé <[email protected]> Message-ID: <[email protected]> Reviewed-by: Kevin Wolf <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> --- block/accounting.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/accounting.c b/block/accounting.c index 038af370170..d10c06de05e 100644 --- a/block/accounting.c +++ b/block/accounting.c @@ -80,6 +80,8 @@ bool block_acct_setup(BlockAcctStats *stats, enum OnOffAuto account_invalid, void block_acct_cleanup(BlockAcctStats *stats) { BlockAcctTimedStats *s, *next; + block_latency_histograms_clear(stats); + QSLIST_FOREACH_SAFE(s, &stats->intervals, entries, next) { g_free(s); } -- 2.56.0
