Blame SOURCES/pacemaker-8ffcf86bcab8bf98d5477a68b73e5062eb0c0fad-pacemakerd-memleak.patch

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