X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/bdad0f3977ee38f681453f602ddec9f4e24b03f9..b41e912f32db79f97cc289dce57a13ca7d45332c:/qga/guest-agent-command-state.c diff --git a/qga/guest-agent-command-state.c b/qga/guest-agent-command-state.c index 20b9b22224..18bcb5941d 100644 --- a/qga/guest-agent-command-state.c +++ b/qga/guest-agent-command-state.c @@ -10,8 +10,7 @@ * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include -#include "qga/guest-agent-core.h" +#include "guest-agent-core.h" struct GACommandState { GSList *groups; @@ -72,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); +}