aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c
index 46162d51..d553b876 100644
--- a/src/librc/librc-daemon.c
+++ b/src/librc/librc-daemon.c
@@ -553,7 +553,6 @@ bool rc_service_daemons_crashed(const char *service)
break;
}
}
- free(line);
fclose(fp);
pid = 0;
@@ -621,6 +620,7 @@ bool rc_service_daemons_crashed(const char *service)
break;
}
closedir(dp);
+ free(line);
return retval;
}