summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-07-10 12:36:53 +0200
committerJohn Crispin <blogic@openwrt.org>2013-07-10 12:43:37 +0200
commit721b75070af01c2c49b5abe80baae1d95ca5a603 (patch)
treeb4703ac21b576fe9f8b1f00a7fad6efb04d8d77d
parentf29ce20a2f87dc5a9c266c5ffca68f2a6f0de1dc (diff)
downloadunitd-721b75070af01c2c49b5abe80baae1d95ca5a603.tar
unitd-721b75070af01c2c49b5abe80baae1d95ca5a603.zip
invalid pointer was passed to free()
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trigger.c b/trigger.c
index fff1855..cecc6a6 100644
--- a/trigger.c
+++ b/trigger.c
@@ -94,7 +94,7 @@ static void q_job_complete(struct runqueue *q, struct runqueue_task *p)
if (j->trigger->remove) {
list_del(&j->trigger->list);
- free(&j->trigger);
+ free(j->trigger);
} else {
j->trigger->pending = 0;
}