Re: [PATCH 10/13] Turn virKeepAlive into a virObject

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

 



<...>

> @@ -179,20 +195,13 @@ virKeepAliveTimer(int timer ATTRIBUTE_UNUSED, void *opaque)
>      }
>  
>      virKeepAliveLock(ka);
> -    ka->refs--;
> +    virObjectUnref(ka);
>  
>  cleanup:
>      virKeepAliveUnlock(ka);
>  }

virObjectUnref may have freed ka and we are going to unlock a freed
object.  We can safely remove lock/unlock here.

-- 
Thanks,
Hu Tao

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