From: Ben Pfaff Date: Tue, 2 Feb 2010 22:36:19 +0000 (-0800) Subject: daemon: Fix memory leak in --monitor implementation. X-Git-Tag: v1.0.0~259^2~202 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b2d06cb8cbafe6c759f80c3b12691fef7ae2712a;p=sliver-openvswitch.git 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 140e0f725..46c9a88e7 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();