From: Felix Fietkau Date: Tue, 17 Dec 2024 20:27:59 +0000 (+0100) Subject: service: fix double free bug when dealing with data X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fd01fb852302a2683d09ee1c2193d7c51e2b0ba8;p=project%2Fprocd.git service: fix double free bug when dealing with data clear the stale pointer Signed-off-by: Felix Fietkau --- diff --git a/service/service.c b/service/service.c index 25e2885..515c992 100644 --- a/service/service.c +++ b/service/service.c @@ -205,6 +205,7 @@ service_delete(struct service *s, bool container) { blobmsg_list_free(&s->data_blob); free(s->data); + s->data = NULL; vlist_flush_all(&s->instances); s->deleted = true; service_stopped(s);