From: Ben Pfaff Date: Tue, 2 Feb 2010 22:36:19 +0000 (-0800) Subject: daemon: Fix memory leak in --monitor implementation. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2d06cb8cbafe6c759f80c3b12691fef7ae2712a;p=openvswitch 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. --- 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();