From 13d88731b78cef5bb8b88faa9d3e16068f37598f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 22 Sep 2008 20:07:14 +0000 Subject: [PATCH] We don't check exec when starting, so don't when testing for crashed. --- src/librc/librc-daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {