[libvirt] [RFC PATCH 01/10] libvirtd: Alter refcnt processing for domain server objects

Erik Skultety eskultet at redhat.com
Mon Jan 15 16:02:56 UTC 2018

On Wed, Jan 10, 2018 at 12:23:26PM -0500, John Ferlan wrote:
> Once virNetDaemonAddServer returns, the @srv or @srvAdm have
> either been added to the @dmn list increasing the refcnt or
> there was an error. In either case, we can lower the refcnt
> from virNetServerNew, but not set to NULL. Thus "using" the
> hash table reference when adding programs later or allowing
> the immediate free of the object on error.
> The @dmn dispose function (virNetDaemonDispose) will handle
> the Unref of each object during the virHashFree when the
> object is removed from the hash table.
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>

More information about the libvir-list mailing list