diff options
author | Sam James <sam@gentoo.org> | 2022-03-29 08:00:08 +0100 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2022-05-08 14:56:26 -0500 |
commit | 17496f3c2b3baa34ed7a99b1bd4e8b08651ae734 (patch) | |
tree | c04b86a4423657ed93c1a3886322839016eda02d /src | |
parent | c47b37ea68be62e527a342c5f2bf91538dbc9653 (diff) |
rc-status: fix mismatched alloc
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/rc-status/rc-status.c | 2 |
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); |