aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc/librc-daemon.c')
-rw-r--r--src/librc/librc-daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c
index ce3486e9..f2c1b445 100644
--- a/src/librc/librc-daemon.c
+++ b/src/librc/librc-daemon.c
@@ -534,7 +534,9 @@ bool rc_service_daemons_crashed(const char *service)
free(pidfile);
pidfile = NULL;
- /* We have the pid, so no need to match on name */
+ /* We have the pid, so no need to match on exec or name */
+ free(exec);
+ exec = NULL;
free(name);
name = NULL;
} else {