aboutsummaryrefslogtreecommitdiff
path: root/src/librc-daemon.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/librc-daemon.c
parent7a2507c52fcef007636701b947d0106c5b968272 (diff)
Plug some leaks
Diffstat (limited to 'src/librc-daemon.c')
-rw-r--r--src/librc-daemon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librc-daemon.c b/src/librc-daemon.c
index a563797b..5b1e0239 100644
--- a/src/librc-daemon.c
+++ b/src/librc-daemon.c
@@ -341,9 +341,8 @@ void rc_set_service_daemon (const char *service, const char *exec,
oldfile = ffile;
}
}
- if (ffile)
- free (ffile);
- free (files);
+ free (ffile);
+ rc_strlist_free (files);
}
/* Now store our daemon info */
@@ -413,7 +412,7 @@ bool rc_service_started_daemon (const char *service, const char *exec,
if (retval)
break;
}
- free (files);
+ rc_strlist_free (files);
}
free (mexec);