summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-25 21:24:09 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-25 21:24:09 +0200
commit1a555f67c7de2b942aa188840ab97fb0e518c1ca (patch)
treefab6021242ab3e55f1eabec6a9d38cc5a483416e /service
parent9c0f1463fe60b2524118cc7fdb18ce0b3e1d2f7c (diff)
downloadunitd-1a555f67c7de2b942aa188840ab97fb0e518c1ca.tar
unitd-1a555f67c7de2b942aa188840ab97fb0e518c1ca.zip
service: free trigger json_script context
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'service')
-rw-r--r--service/trigger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/trigger.c b/service/trigger.c
index 6cd94d4..480367b 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)
{
+ json_script_free(&t->jctx);
uloop_timeout_cancel(&t->delay);
free(t->data);
list_del(&t->list);