]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Add refcnt for args->conn during migration
authorJohn Ferlan <jferlan@redhat.com>
Mon, 23 Apr 2018 15:58:54 +0000 (11:58 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 3 May 2018 23:09:03 +0000 (19:09 -0400)
commitfaa148bc5d5554e6bdc412aec2c429ba677d6ed2
tree69eb2800bb8c99a07f84ca2b5293af49672ffbb2
parent8369ddfd1b14eed645b1c7facd297886bebf3fe1
libxl: Add refcnt for args->conn during migration

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@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/libxl/libxl_migration.c