From fd01fb852302a2683d09ee1c2193d7c51e2b0ba8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 17 Dec 2024 21:27:59 +0100 Subject: [PATCH] service: fix double free bug when dealing with data clear the stale pointer Signed-off-by: Felix Fietkau --- service/service.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2