提交 b1eaa535 编写于 作者: J Ján Tomko

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 ddf8ad82, useless code
introduced by f03dcc5d.

https://bugzilla.redhat.com/show_bug.cgi?id=977961
(cherry picked from commit 5744d96f)
上级 7d3a7c8d
......@@ -2596,8 +2596,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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册