Skip to contentSkip to conversation

qemu: free migration structure if migration fails

PATCH Applied Jim Paris 2 participants 2 messages Aug 10, 2007 – Aug 13, 2007 1 message not in the archive KVM

lore
Share & tools
lore

Jim Paris

author
#0 lore raw

PATCH 1/1 qemu: free migration structure if migration fails

Without this, memory is leaked and later attempts fail with "Migration already active".

---
 qemu/migration.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
qemu/migration.c +2 -0
index bbeed86..ed1fd29 100644
@@ -190,6 +190,8 @@ static void migrate_finish(MigrationState *s)
         save_verify_memory(f, NULL);
 #endif /* MIGRATION_VERIFY */
         qemu_fclose(f);
+    } else {
+	    migrate_close(s);
     }
     status = *has_error;
     if (ret && !status)
Signature · 8 lines
1.5.3.rc4


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 11867742993220-git-send-email-jim-XrPbb/[email protected]

Applied
#2 lore raw
Quoted 3 lines · Jim Paris

Without this, memory is leaked and later attempts fail with "Migration already active".

Applied, thanks.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/