From b2d06cb8cbafe6c759f80c3b12691fef7ae2712a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 2 Feb 2010 14:36:19 -0800 Subject: [PATCH] daemon: Fix memory leak in --monitor implementation. This leaked a small amount of memory each time a daemon process was created. It is only important if a daemon is otherwise very buggy. Found with valgrind. --- lib/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/daemon.c b/lib/daemon.c index 140e0f72..46c9a88e 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -364,6 +364,7 @@ monitor_daemon(pid_t daemon_pid) } } } + free(status_msg); /* Running in new daemon process. */ proctitle_restore(); -- 2.30.2