From 17496f3c2b3baa34ed7a99b1bd4e8b08651ae734 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 29 Mar 2022 08:00:08 +0100 Subject: rc-status: fix mismatched alloc Signed-off-by: Sam James --- src/rc-status/rc-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rc-status') diff --git a/src/rc-status/rc-status.c b/src/rc-status/rc-status.c index cb701e24..d35c8429 100644 --- a/src/rc-status/rc-status.c +++ b/src/rc-status/rc-status.c @@ -406,7 +406,7 @@ int main(int argc, char **argv) TAILQ_FOREACH(l, levels, entries) { nservices = rc_services_in_runlevel_stacked(l->value); TAILQ_CONCAT(sservices, nservices, entries); - free(nservices); + rc_stringlist_free(nservices); } TAILQ_FOREACH_SAFE(s, services, entries, t) { state = rc_service_state(s->value); -- cgit v1.2.3