]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qga/guest-agent-command-state.c
io vnc sockets: Clean up SocketAddressKind switches
[mirror_qemu.git] / qga / guest-agent-command-state.c
index 128c549edbb9ee437fadac427969c58957cc1b85..e609d320f0d2231cf2861bd2900b22e0efc099c5 100644 (file)
@@ -9,7 +9,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
-#include <glib.h>
+#include "qemu/osdep.h"
 #include "qga/guest-agent-core.h"
 
 struct GACommandState {
@@ -71,3 +71,9 @@ GACommandState *ga_command_state_new(void)
     cs->groups = NULL;
     return cs;
 }
+
+void ga_command_state_free(GACommandState *cs)
+{
+    g_slist_free_full(cs->groups, g_free);
+    g_free(cs);
+}