[libvirt] [PATCH 5/6] libxl: Add refcnt for args->conn during migration

Erik Skultety eskultet at redhat.com
Thu May 3 12:36:29 UTC 2018


On Tue, Apr 24, 2018 at 08:28:08AM -0400, John Ferlan wrote:
> Since the @dconn reference via args->conn will be used via a thread
> or callback, let's make sure memory associated with it isn't free'd
> unexpectedly before we use it. The Unref will be done when the object
> is Dispose'd.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>

Also, yeah, as you figured and noted in the cover letter, these two libxl
patches would probably be better off in a separate series IMO.

Erik




More information about the libvir-list mailing list