]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Add bdrv_reopen_queue_free()
authorAlberto Garcia <berto@igalia.com>
Thu, 8 Jul 2021 11:47:05 +0000 (13:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jul 2021 11:19:11 +0000 (13:19 +0200)
commitab5b522879e2a7880418cbd29340675e5427572f
treec8bd07b7b0a3e64117ae3745222bcc9474de47ef
parentbcfd86d6a6432be75fd8700c7c1aabb243adf469
block: Add bdrv_reopen_queue_free()

Move the code to free a BlockReopenQueue to a separate function.
It will be used in a subsequent patch.

[ kwolf: Also free explicit_options and options, and explicitly
  qobject_ref() the value when it continues to be used. This makes
  future memory leaks less likely. ]

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210708114709.206487-3-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
include/block/block.h