aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-31 07:07:56 +0100
committerWilliam Hubbs <w.d.hubbs@gmail.com>2022-05-08 14:56:26 -0500
commitd0a2e30137da1e98c264c5c7d42d22daed130234 (patch)
tree46aeac02ba84c8ff6f6163aec25b960d55290836 /src
parent17496f3c2b3baa34ed7a99b1bd4e8b08651ae734 (diff)
rc-update: fix mismatched alloc
Found by GCC 11's -fanalyzer. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/rc-update/rc-update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc-update/rc-update.c b/src/rc-update/rc-update.c
index 445db4e8..49104af4 100644
--- a/src/rc-update/rc-update.c
+++ b/src/rc-update/rc-update.c
@@ -288,7 +288,7 @@ int main(int argc, char **argv)
if (service)
rc_stringlist_add(runlevels, service);
if (!TAILQ_FIRST(runlevels)) {
- free(runlevels);
+ rc_stringlist_free(runlevels);
runlevels = rc_runlevel_list();
}