]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: fix double free in qemuMigrationPrepareDirect
authorJán Tomko <jtomko@redhat.com>
Wed, 10 Jul 2013 10:33:29 +0000 (12:33 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2013 07:27:04 +0000 (09:27 +0200)
Remove assignment of the string freed by virURIFree
to hostname, since it's not used anywhere.

Double free introduced by ddf8ad8, useless code
introduced by f03dcc5.

https://bugzilla.redhat.com/show_bug.cgi?id=977961
(cherry picked from commit 5744d96f211160d406ec0498c2f814a67d1a3fc8)

src/qemu/qemu_migration.c

index be063f34d46a55e275382359344c9d232ff5f049..e6223717d0c0457226a57dee02aede2fa57f4c1b 100644 (file)
@@ -2441,8 +2441,6 @@ qemuMigrationPrepareDirect(virQEMUDriverPtr driver,
             virReportError(VIR_ERR_INVALID_ARG, _("missing host in migration"
                                                   " URI: %s"), uri_in);
             goto cleanup;
-        } else {
-            hostname = uri->server;
         }
 
         if (uri->port == 0) {