service: fix trigger data memleak
authorFelix Fietkau <nbd@openwrt.org>
Sun, 25 May 2014 19:15:05 +0000 (21:15 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 25 May 2014 19:15:05 +0000 (21:15 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service/service.c

index 23532e88ed92a863f501aa4962935d96c99eef31..8d1217f09f151936acd9592f2df9bec66d98e693 100644 (file)
@@ -149,7 +149,6 @@ service_delete(struct service *s)
        vlist_flush_all(&s->instances);
        avl_delete(&services, &s->avl);
        trigger_del(s);
-       s->trigger = NULL;
        free(s->trigger);
        free(s);
        service_validate_del(s);