[PATCH] qemu: fix double free in qemuMigrationPrepareDirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index f9fd64f..fc70f31 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -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) {
-- 
1.8.1.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]