From 5d0ef099631e84adfca714b9fa28290778b6e3b7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 24 Jul 2012 11:13:21 +0100 Subject: launch: libvirt: Move free to end of function. This is just code motion. --- src/launch-libvirt.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/launch-libvirt.c') diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c index 80754b3c..c2e3a281 100644 --- a/src/launch-libvirt.c +++ b/src/launch-libvirt.c @@ -259,17 +259,6 @@ launch_libvirt (guestfs_h *g, const char *libvirt_uri) goto cleanup; } - free (kernel); - kernel = NULL; - free (initrd); - initrd = NULL; - free (appliance); - appliance = NULL; - free (xml); - xml = NULL; - free (capabilities); - capabilities = NULL; - g->state = LAUNCHING; /* Wait for console socket to open. */ @@ -354,6 +343,12 @@ launch_libvirt (guestfs_h *g, const char *libvirt_uri) g->virt.connv = conn; g->virt.domv = dom; + free (kernel); + free (initrd); + free (appliance); + free (xml); + free (capabilities); + return 0; cleanup: -- cgit