librc: fix mismatched allocs

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James authored and William Hubbs committed 2022-05-08 14:56:26 -05:00
1 parent 14835a2262
commit fbefd68b2d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -413,7 +413,7 @@ rc_conf_value(const char *setting)
if (exists(RC_CONF_OLD)) {
old = rc_config_load(RC_CONF_OLD);
TAILQ_CONCAT(rc_conf, old, entries);
free(old);
rc_stringlist_free(old);
}
rc_conf = rc_config_directory(rc_conf);
+1 -1
View File
@@ -977,7 +977,7 @@ rc_services_in_runlevel_stacked(const char *runlevel)
TAILQ_FOREACH(stack, stacks, entries) {
sl = rc_services_in_runlevel(stack->value);
TAILQ_CONCAT(list, sl, entries);
free(sl);
rc_stringlist_free(sl);
}
rc_stringlist_free(stacks);
return list;