aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-29 08:00:08 +0100
committerWilliam Hubbs <w.d.hubbs@gmail.com>2022-05-08 14:56:26 -0500
commit17496f3c2b3baa34ed7a99b1bd4e8b08651ae734 (patch)
treec04b86a4423657ed93c1a3886322839016eda02d
parentc47b37ea68be62e527a342c5f2bf91538dbc9653 (diff)
rc-status: fix mismatched alloc
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--src/rc-status/rc-status.c2
1 files changed, 1 insertions, 1 deletions
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);