diff --git a/lib/pidfile.c b/lib/pidfile.c index ba71b34..c32ba98 100644 --- a/lib/pidfile.c +++ b/lib/pidfile.c @@ -107,5 +107,6 @@ pidfile_cleanup(void) if (pidfile_path != NULL && pidfile_pid == getpid()) { (void)unlink(pidfile_path); free(pidfile_path); + pidfile_path = NULL; } }