invalid pointer was passed to free()
authorJohn Crispin <blogic@openwrt.org>
Wed, 10 Jul 2013 10:36:53 +0000 (12:36 +0200)
committerJohn Crispin <blogic@openwrt.org>
Wed, 10 Jul 2013 10:43:37 +0000 (12:43 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
trigger.c

index fff1855f6fe48f348c92002271d6225012c3851f..cecc6a6b72bd16a22e00248935912fe66046073c 100644 (file)
--- 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;
        }