Fix #550 by allowing an empty trigger match list
1e7659609b
is related
to this change and required to fix #550 as well.
This commit is contained in:
parent
1e7659609b
commit
42f4619d6b
|
@ -80,7 +80,9 @@ SR_API void sr_trigger_free(struct sr_trigger *trig)
|
|||
|
||||
for (l = trig->stages; l; l = l->next) {
|
||||
stage = l->data;
|
||||
g_slist_free_full(stage->matches, g_free);
|
||||
|
||||
if (stage->matches)
|
||||
g_slist_free_full(stage->matches, g_free);
|
||||
}
|
||||
g_slist_free_full(trig->stages, g_free);
|
||||
|
||||
|
|
Loading…
Reference in New Issue