<...>

> @@ -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@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to