diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-25 21:12:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-25 21:12:49 +0200 |
commit | bc0900b190015b3018adc652d91c4dfd6851aadd (patch) | |
tree | 5cc95d92b6106576cafea40c7e01bc4a8f66cd65 /service | |
parent | 396efd78d68310c90a9b2a18faaf46ad47f7509c (diff) | |
download | unitd-bc0900b190015b3018adc652d91c4dfd6851aadd.tar unitd-bc0900b190015b3018adc652d91c4dfd6851aadd.zip |
service: ensure that trigger timers are always cancelled before free
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'service')
-rw-r--r-- | service/trigger.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |