Re: [PATCH] daemon: only unref virNetServers once

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

 



On Wed, Jun 17, 2015 at 18:29:16 +0200, Ján Tomko wrote:
> After we add srv and srvAdm to the virNetDaemon,
> it's its responsibility to unref them in virNetDaemonDispose.
> 
> Added by commits fa14207 and d5f4241.
> ---
>  daemon/libvirtd.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
> index 368e10c..9e6c489 100644
> --- a/daemon/libvirtd.c
> +++ b/daemon/libvirtd.c
> @@ -1589,8 +1589,6 @@ int main(int argc, char **argv) {
>      virObjectUnref(adminProgram);
>      virNetDaemonClose(dmn);
>      virObjectUnref(dmn);
> -    virObjectUnref(srv);
> -    virObjectUnref(srvAdm);

virNetDaemonAddServer that adds them to the virNetDaemon increases the
reference count, thus the main function should retain it's reference.

I think these should remain and the bug needs to be fixed elsewhere.
I'm giving it a brief glance before I'll go complain to Martin for
breaking it.

Peter

Attachment: signature.asc
Description: Digital 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]