diff options
-rw-r--r-- | src/librc/librc-misc.c | 2 | ||||
-rw-r--r-- | src/librc/librc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index 6a3f3226..9dfbaec0 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -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); diff --git a/src/librc/librc.c b/src/librc/librc.c index 8841394a..92de375a 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -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; |