From bc0900b190015b3018adc652d91c4dfd6851aadd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 25 May 2014 21:12:49 +0200 Subject: [PATCH] service: ensure that trigger timers are always cancelled before free Signed-off-by: Felix Fietkau --- service/trigger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/service/trigger.c b/service/trigger.c index f450401..6cd94d4 100644 --- a/service/trigger.c +++ b/service/trigger.c @@ -90,6 +90,7 @@ static void q_job_run(struct runqueue *q, struct runqueue_task *t) static void trigger_free(struct trigger *t) { + uloop_timeout_cancel(&t->delay); free(t->data); list_del(&t->list); free(t); -- 2.25.1