diff options
author | Sam James <sam@gentoo.org> | 2022-03-29 08:00:26 +0100 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2022-05-08 14:56:26 -0500 |
commit | fbefd68b2d4daabfd3353dc9e6bb7d1d74e9bee9 (patch) | |
tree | 1c3d9f2dfdd0b97dfd88989ec5fcbe334c383a9f /src/librc | |
parent | 14835a22627388f2ae0f121ef5aa075c5e5706da (diff) |
librc: fix mismatched allocs
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'src/librc')
-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; |