From d0a2e30137da1e98c264c5c7d42d22daed130234 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 31 Mar 2022 07:07:56 +0100 Subject: rc-update: fix mismatched alloc Found by GCC 11's -fanalyzer. Signed-off-by: Sam James --- src/rc-update/rc-update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3