qemu: fix double free in qemuMigrationPrepareDirect

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)
This commit is contained in:
Ján Tomko 2013-07-10 12:33:29 +02:00
parent 508a7a7523
commit efa2739be6

View 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) {