aboutsummaryrefslogtreecommitdiff
path: root/src/rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc.c')
-rw-r--r--src/rc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rc.c b/src/rc.c
index 850be074..2ae3d560 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -1140,8 +1140,9 @@ int main (int argc, char **argv)
CHAR_FREE (tmp);
} else {
/* Store our list of coldplugged services */
- rc_strlist_join (&coldplugged_services,
- rc_ls_dir (RC_SVCDIR_COLDPLUGGED, RC_LS_INITD));
+ tmplist = rc_ls_dir (RC_SVCDIR_COLDPLUGGED, RC_LS_INITD);
+ rc_strlist_join (&coldplugged_services, tmplist);
+ rc_strlist_free (tmplist);
if (strcmp (newlevel ? newlevel : runlevel, RC_LEVEL_SINGLE) != 0 &&
strcmp (newlevel ? newlevel : runlevel, RC_LEVEL_SHUTDOWN) != 0 &&
strcmp (newlevel ? newlevel : runlevel, RC_LEVEL_REBOOT) != 0)