mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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 byddf8ad8
, useless code introduced byf03dcc5
. https://bugzilla.redhat.com/show_bug.cgi?id=977961
This commit is contained in:
parent
483246f2e1
commit
5744d96f21
@ -2572,8 +2572,6 @@ qemuMigrationPrepareDirect(virQEMUDriverPtr driver,
|
|||||||
virReportError(VIR_ERR_INVALID_ARG, _("missing host in migration"
|
virReportError(VIR_ERR_INVALID_ARG, _("missing host in migration"
|
||||||
" URI: %s"), uri_in);
|
" URI: %s"), uri_in);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else {
|
|
||||||
hostname = uri->server;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uri->port == 0) {
|
if (uri->port == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user