From 495690ea5e01c1375a8bd8106ba5fbaea634444c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 24 Sep 2007 09:07:00 +0000 Subject: Plug some leaks --- src/librc-daemon.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/librc-daemon.c') 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); -- cgit v1.2.3