From: Denis V. Lunev <[email protected]>
parallels_parse_format_extension() returns directly on the end of
features marker, leaking the list which tracks the loaded bitmaps. The
bitmaps themselves belong to the block driver state, only the list
nodes are lost.
Fixes: baefd977002e ("parallels: support bitmap extension for read-only mode")
Cc: Stefan Hajnoczi <[email protected]>
Cc: Thomas Huth <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
---
block/parallels-ext.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/parallels-ext.c b/block/parallels-ext.c
index 89fab36039..21f54e4e3e 100644
--- a/block/parallels-ext.c
+++ b/block/parallels-ext.c
@@ -290,6 +290,7 @@ parallels_parse_format_extension(BlockDriverState *bs,
uint8_t *ext_cluster,
switch (fh.magic) {
case PARALLELS_END_OF_FEATURES_MAGIC:
+ g_slist_free(bitmaps);
return 0;
case PARALLELS_DIRTY_BITMAP_FEATURE_MAGIC:
--
2.53.0