Re: [PATCH 2/2] conf: fix vsock memory leaks

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

 



On Wed, May 30, 2018 at 16:08:07 +0200, Ján Tomko wrote:
> Introduced by:
> commit d4abb7b45d48aba77c2464dbea95f02a43a60834
>     conf: introduce <vsock> element
> commit b8b42ca036adbfaac1741c8efe389cd1403e220b
>     qemu: add support for vhost-vsock-pci
> 
> Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
> ---
>  src/conf/domain_conf.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 544f63a2a9..27e2bd50eb 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -2062,6 +2062,7 @@ virDomainVsockDefFree(virDomainVsockDefPtr vsock)
>          return;
>  
>      virObjectUnref(vsock->privateData);
> +    virDomainDeviceInfoClear(&vsock->info);
>      VIR_FREE(vsock);
>  }
>  
> @@ -3092,6 +3093,7 @@ void virDomainDefFree(virDomainDefPtr def)
>  
>      virDomainMemballoonDefFree(def->memballoon);
>      virDomainNVRAMDefFree(def->nvram);
> +    virDomainVsockDefFree(def->vsock);

Oops, I was pretty sure I've seen this ... probably hallucinations.

>  
>      for (i = 0; i < def->mem.nhugepages; i++)
>          virBitmapFree(def->mem.hugepages[i].nodemask);

ACK

Attachment: signature.asc
Description: PGP signature

--
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