]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: backup: Initialize 'store' source properly and just once
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Jun 2020 04:32:04 +0000 (06:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Jun 2020 09:23:01 +0000 (11:23 +0200)
commit2d26f8b710d259a3e164a2bea3c9f9dc0de9b419
treea19109879e7ed506ef038aa294cecb492c172e5c
parentb5212365b640fceb7116dca30518b42bf6ab42df
qemu: backup: Initialize 'store' source properly and just once

Two functions called in sequence both initialized the virStorageSource
backing 'store' leading to a memleak.

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