diff options
Diffstat (limited to 'src/librc/librc-daemon.c')
-rw-r--r-- | src/librc/librc-daemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index a58ba15c..bc632463 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -561,14 +561,13 @@ bool rc_service_daemons_crashed(const char *service) if ((fp = fopen(pidfile, "r"))) { if (fscanf(fp, "%d", &pid) == 1) retval = false; - fclose (fp); } free(pidfile); pidfile = NULL; /* We have the pid, so no need to match on name */ - free (name); + free(name); name = NULL; } else { if (exec) { |