aboutsummaryrefslogtreecommitdiff
path: root/qga/guest-agent-command-state.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-07-15 17:52:52 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2016-09-08 17:57:32 +0400
commit3e3e302ff388669d811077248aee45c45a14168e (patch)
treea0538a6972d5f5de27ada323b3816d8f68e8d420 /qga/guest-agent-command-state.c
parent2aa67a919680ed62bbfc77fffbda2ab2e9490d03 (diff)
qga: free remaining leaking state
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qga/guest-agent-command-state.c')
-rw-r--r--qga/guest-agent-command-state.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/qga/guest-agent-command-state.c b/qga/guest-agent-command-state.c
index 4de229cd78..e609d320f0 100644
--- a/qga/guest-agent-command-state.c
+++ b/qga/guest-agent-command-state.c
@@ -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);
+}