summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2009-10-07 14:53:30 -0400
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2009-10-07 14:53:30 -0400
commit220f2c917d6b35b2737f0a3ba070a87117aaaefc (patch)
tree17be62d794a31aff255aa8ab9d52f8996002e8f7
parent1dc5ac66b86a96ce22181896aa388be7dda096b7 (diff)
downloadlibnice-220f2c917d6b35b2737f0a3ba070a87117aaaefc.tar.gz
avoid a memory leak in case of a restart
-rw-r--r--agent/component.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/component.c b/agent/component.c
index 1286a8f..329016d 100644
--- a/agent/component.c
+++ b/agent/component.c
@@ -197,6 +197,8 @@ component_restart (Component *cmp)
g_free (icheck->username);
g_slice_free (IncomingCheck, icheck);
}
+ g_slist_free (cmp->incoming_checks);
+ cmp->incoming_checks = NULL;
/* note: component state managed by agent */