diff options
author | Roy Marples <roy@marples.name> | 2007-09-24 09:07:00 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-24 09:07:00 +0000 |
commit | 495690ea5e01c1375a8bd8106ba5fbaea634444c (patch) | |
tree | c244894d2a3abe0d67fb30b1545add582b045013 /src/rc.c | |
parent | 7a2507c52fcef007636701b947d0106c5b968272 (diff) |
Plug some leaks
Diffstat (limited to 'src/rc.c')
-rw-r--r-- | src/rc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |