]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Free migration cookie
authorJohn Ferlan <jferlan@redhat.com>
Mon, 16 May 2016 12:20:46 +0000 (08:20 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 16 May 2016 17:41:17 +0000 (13:41 -0400)
commit1222a3032b85b5ed15c6b63c4dd99ce8c914fed0
tree9b2275a13c9b27319cc09a844333620a0d0aff0d
parent52760707bc1dedf0766a194062dbcdecb85fd407
libxl: Free migration cookie

Commit id 'f9edcfa4' added cookie manipulation for libxl; however, some
cookie crumb cleanup was missed. Found by Coverity.

In libxlDomainMigrationBegin, the cookie is allocated and baked; however,
the mig ingredients weren't cleaned up.

In libxlDomainMigrationPrepare, when the 'mig' cookie is added to the
args, set the 'mig = NULL'; otherwise, other failure paths between when
the code ate the cookie data and when it was added to args would fail
to clean up the crumbs.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/libxl/libxl_migration.c