trigger: Fix memory leak.

This commit is contained in:
Bert Vermeulen 2014-05-28 15:46:21 +02:00
parent 28731bab29
commit 2fe8049447
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ SR_API void sr_trigger_free(struct sr_trigger *trig)
stage = l->data; stage = l->data;
g_slist_free_full(stage->matches, g_free); g_slist_free_full(stage->matches, g_free);
} }
g_slist_free_full(trig->stages, (GDestroyNotify)g_slist_free); g_slist_free_full(trig->stages, g_free);
g_free(trig->name); g_free(trig->name);
g_free(trig); g_free(trig);