From 8ffcf86bcab8bf98d5477a68b73e5062eb0c0fad Mon Sep 17 00:00:00 2001 From: Hideo Yamauchi Date: Wed, 24 Dec 2014 09:37:52 +0900 Subject: [PATCH] Fix: pacemakerd: resolves memory leak of xml structure in pacemakerd --- mcp/pacemaker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcp/pacemaker.c b/mcp/pacemaker.c index fa2c707..5235ba6 100644 --- a/mcp/pacemaker.c +++ b/mcp/pacemaker.c @@ -828,6 +828,10 @@ mcp_cpg_deliver(cpg_handle_t handle, name = crm_element_value(xml, XML_ATTR_UNAME); reap_crm_member(id, name); } + + if (xml != NULL) { + free_xml(xml); + } } static void -- 1.8.4.2