[Sheepdog] [PATCH] cluster/corosync: fix memory leak
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Nov 1 08:52:44 CET 2011
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/cluster/corosync.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/sheep/cluster/corosync.c b/sheep/cluster/corosync.c
index 2edd90e..05bc458 100644
--- a/sheep/cluster/corosync.c
+++ b/sheep/cluster/corosync.c
@@ -394,6 +394,7 @@ static void __corosync_dispatch(void)
break;
list_del(&cevent->list);
+ free(cevent->msg);
free(cevent);
}
}
@@ -527,6 +528,7 @@ static void cdrv_cpg_confchg(cpg_handle_t handle,
if (cevent) {
/* the node left before joining */
list_del(&cevent->list);
+ free(cevent->msg);
free(cevent);
continue;
}
@@ -536,6 +538,7 @@ static void cdrv_cpg_confchg(cpg_handle_t handle,
if (cevent) {
/* the node left before sending UNBLOCK */
list_del(&cevent->list);
+ free(cevent->msg);
free(cevent);
}
--
1.7.2.5
More information about the sheepdog
mailing list