block: fix leak of block histogram data
PATCH v2 1/1 block: fix leak of block histogram data
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]>
--- block/accounting.c | 2 ++ 1 file changed, 2 insertions(+)
block/accounting.c +2 -0
@@ -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); }
Signature · 1 line
2.56.0
Kevin Wolf
AppliedAm 30.10.2026 um 12:51 hat Daniel P. Berrangé geschrieben:
Quoted 5 lines
The
block_acct_cleanupmethod failed to release memory associated with block histograms.Fixes b741ae7417 (block/accounting: introduce latency histogram)Signed-off-by Daniel P. Berrangé <[email protected]>
Thanks, applied to the block branch.
Kevin