From: Bert Vermeulen Date: Wed, 28 May 2014 13:46:21 +0000 (+0200) Subject: trigger: Fix memory leak. X-Git-Tag: libsigrok-0.4.0~1299 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2fe80494471a601484b58dd30043665c0dd84774;p=libsigrok.git trigger: Fix memory leak. --- diff --git a/trigger.c b/trigger.c index 97a7ef68..0bc8527d 100644 --- a/trigger.c +++ b/trigger.c @@ -44,7 +44,7 @@ SR_API void sr_trigger_free(struct sr_trigger *trig) stage = l->data; 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);