Re: [PATCH 3/6] qemu: driver: Save status XML when starting a block job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/04/2017 07:59 AM, Peter Krempa wrote:
> Few jobs (which don't) use the 'mirror' element did not save the status
> XML. It will be helpful to do so once we start tracking jobs fully.
> ---
>  src/qemu/qemu_driver.c | 32 +++++++++++++++++---------------
>  1 file changed, 17 insertions(+), 15 deletions(-)
> 

[...]

> @@ -17311,6 +17317,7 @@ qemuDomainBlockCommit(virDomainPtr dom,
>                        unsigned int flags)
>  {
>      virQEMUDriverPtr driver = dom->conn->privateData;
> +    virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
>      qemuDomainObjPrivatePtr priv;
>      virDomainObjPtr vm = NULL;
>      char *device = NULL;

There's a :

     virCheckFlags(VIR_DOMAIN_BLOCK_COMMIT_SHALLOW |... , -1);

that will leak cfg... with obvious adjustment...

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

John

[...]

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux