projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d951f1c
)
daemon: Fix memory leak in --monitor implementation.
author
Ben Pfaff
<blp@nicira.com>
Tue, 2 Feb 2010 22:36:19 +0000
(14:36 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 2 Feb 2010 23:21:09 +0000
(15:21 -0800)
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
patch
|
blob
|
history
diff --git
a/lib/daemon.c
b/lib/daemon.c
index 140e0f725f9bf84a32b472a178ae65eccc1ad9c2..46c9a88e750bc554cda1c92393a6412bd7eba633 100644
(file)
--- 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();