librc: fix mismatched allocs
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
14835a2262
commit
fbefd68b2d
@ -413,7 +413,7 @@ rc_conf_value(const char *setting)
|
|||||||
if (exists(RC_CONF_OLD)) {
|
if (exists(RC_CONF_OLD)) {
|
||||||
old = rc_config_load(RC_CONF_OLD);
|
old = rc_config_load(RC_CONF_OLD);
|
||||||
TAILQ_CONCAT(rc_conf, old, entries);
|
TAILQ_CONCAT(rc_conf, old, entries);
|
||||||
free(old);
|
rc_stringlist_free(old);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc_conf = rc_config_directory(rc_conf);
|
rc_conf = rc_config_directory(rc_conf);
|
||||||
|
@ -977,7 +977,7 @@ rc_services_in_runlevel_stacked(const char *runlevel)
|
|||||||
TAILQ_FOREACH(stack, stacks, entries) {
|
TAILQ_FOREACH(stack, stacks, entries) {
|
||||||
sl = rc_services_in_runlevel(stack->value);
|
sl = rc_services_in_runlevel(stack->value);
|
||||||
TAILQ_CONCAT(list, sl, entries);
|
TAILQ_CONCAT(list, sl, entries);
|
||||||
free(sl);
|
rc_stringlist_free(sl);
|
||||||
}
|
}
|
||||||
rc_stringlist_free(stacks);
|
rc_stringlist_free(stacks);
|
||||||
return list;
|
return list;
|
||||||
|
Loading…
Reference in New Issue
Block a user