trigger: Fix memory leak.
This commit is contained in:
parent
28731bab29
commit
2fe8049447
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue