aboutsummaryrefslogtreecommitdiff
path: root/src/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-24 09:07:00 +0000
committerRoy Marples <roy@marples.name>2007-09-24 09:07:00 +0000
commit495690ea5e01c1375a8bd8106ba5fbaea634444c (patch)
treec244894d2a3abe0d67fb30b1545add582b045013 /src/rc.c
parent7a2507c52fcef007636701b947d0106c5b968272 (diff)
Plug some leaks
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)