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/librc-daemon.c | |
parent | 7a2507c52fcef007636701b947d0106c5b968272 (diff) |
Plug some leaks
Diffstat (limited to 'src/librc-daemon.c')
-rw-r--r-- | src/librc-daemon.c | 7 |
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); |