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:
Soeren Apel 2015-09-08 19:09:54 +02:00
parent 1e7659609b
commit 42f4619d6b
1 changed files with 3 additions and 1 deletions

View File

@ -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);