]> git.proxmox.com Git - qemu.git/blobdiff - qemu-ga.c
Merge remote-tracking branch 'origin/master' into staging
[qemu.git] / qemu-ga.c
index 1f3585c51e13597a8771fd3c22f29abcd1b71b16..6e2f61fe3c80eea46ff9aecc3f2767f73f2a12e1 100644 (file)
--- a/qemu-ga.c
+++ b/qemu-ga.c
@@ -636,6 +636,9 @@ int main(int argc, char **argv)
     g_log_set_default_handler(ga_log, s);
     g_log_set_fatal_mask(NULL, G_LOG_LEVEL_ERROR);
     s->logging_enabled = true;
+    s->command_state = ga_command_state_new();
+    ga_command_state_init(s, s->command_state);
+    ga_command_state_init_all(s->command_state);
     ga_state = s;
 
     module_call_init(MODULE_INIT_QAPI);
@@ -644,6 +647,7 @@ int main(int argc, char **argv)
 
     g_main_loop_run(ga_state->main_loop);
 
+    ga_command_state_cleanup_all(ga_state->command_state);
     unlink(pidfile);
 
     return 0;