summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-25 21:15:05 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-25 21:15:05 +0200
commit9c0f1463fe60b2524118cc7fdb18ce0b3e1d2f7c (patch)
treee063bc803f507fd593954b0fb93e6565a417240e
parentbc0900b190015b3018adc652d91c4dfd6851aadd (diff)
downloadunitd-9c0f1463fe60b2524118cc7fdb18ce0b3e1d2f7c.tar
unitd-9c0f1463fe60b2524118cc7fdb18ce0b3e1d2f7c.zip
service: fix trigger data memleak
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--service/service.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/service/service.c b/service/service.c
index 23532e8..8d1217f 100644
--- a/service/service.c
+++ b/service/service.c
@@ -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);