]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuCheckpointGetXMLDescUpdateSize: Don't combine automatic freeing with manual
authorPeter Krempa <pkrempa@redhat.com>
Tue, 30 Nov 2021 12:16:15 +0000 (13:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Dec 2021 12:53:11 +0000 (13:53 +0100)
commitb326b4eeaa596f17ba0498dcaa2363d9fd469227
treee1159b1c5a3557197fc4488542eec1ade632ba52
parente552a0d50222b966445fcdb3dd0c2fff71c89278
qemuCheckpointGetXMLDescUpdateSize: Don't combine automatic freeing with manual

'blockNamedNodeData' is declared for automatic freeing but we also free
it manually and reuse which is a code pattern we don't normally allow.

Rewrite the code to have actually two separate hash tables.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_checkpoint.c