rc-status: fix mismatched alloc
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
c47b37ea68
commit
17496f3c2b
@ -406,7 +406,7 @@ int main(int argc, char **argv)
|
|||||||
TAILQ_FOREACH(l, levels, entries) {
|
TAILQ_FOREACH(l, levels, entries) {
|
||||||
nservices = rc_services_in_runlevel_stacked(l->value);
|
nservices = rc_services_in_runlevel_stacked(l->value);
|
||||||
TAILQ_CONCAT(sservices, nservices, entries);
|
TAILQ_CONCAT(sservices, nservices, entries);
|
||||||
free(nservices);
|
rc_stringlist_free(nservices);
|
||||||
}
|
}
|
||||||
TAILQ_FOREACH_SAFE(s, services, entries, t) {
|
TAILQ_FOREACH_SAFE(s, services, entries, t) {
|
||||||
state = rc_service_state(s->value);
|
state = rc_service_state(s->value);
|
||||||
|
Loading…
Reference in New Issue
Block a user