Commit 6b1019e937 for qemu.org

commit 6b1019e9374a7d8b4506f75c926831ddd5cce899
Author: Denis V. Lunev <den@openvz.org>
Date:   Tue Aug 11 12:17:04 2026 +0200

    parallels: fix GSList leak on the format extension success path

    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 <stefanha@redhat.com>
    Cc: Thomas Huth <thuth@redhat.com>
    Signed-off-by: Denis V. Lunev <den@openvz.org>

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: