service: free trigger json_script context
authorFelix Fietkau <nbd@openwrt.org>
Sun, 25 May 2014 19:24:09 +0000 (21:24 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 25 May 2014 19:24:09 +0000 (21:24 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service/trigger.c

index 6cd94d40809dd7c0985ffedf618c4e31b83c7456..480367b05bc37c8ac7766db9fbe8829166b1f1cb 100644 (file)
@@ -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);