qemu: free migration structure if migration fails
PATCH 1/1 qemu: free migration structure if migration fails
Without this, memory is leaked and later attempts fail with "Migration already active".
Signed-off-by Jim Paris <jim-XrPbb/[email protected]>
--- qemu/migration.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
qemu/migration.c +2 -0
@@ -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]
Avi Kivity
AppliedQuoted 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/