]> xenbits.xensource.com Git - 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>
Wed, 10 Jul 2013 10:48:54 +0000 (12:48 +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

src/qemu/qemu_migration.c

index f9fd64f31d7dbe210530310c4ba415b90b8ee88c..fc70f314e633af4eff9f5a2eb1943ea8bd9c3230 100644 (file)
@@ -2572,8 +2572,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) {