File pacemaker-libcib-memory-leak-query_node_uuid.patch of Package pacemaker.14737
commit 3738ed4b2d1e2372669ae0db92be511fec4ce37d
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Fri Feb 17 11:29:12 2017 -0600
Fix: libcib: avoid memory leak in query_node_uuid()
Index: pacemaker/lib/cib/cib_attrs.c
===================================================================
--- pacemaker.orig/lib/cib/cib_attrs.c
+++ pacemaker/lib/cib/cib_attrs.c
@@ -413,7 +413,7 @@ found_remote_node_xpath(cib_t *the_cib,
rc = cib_internal_op(the_cib, CIB_OP_QUERY, NULL, xpath, NULL, &xml_search,
cib_sync_call | cib_scope_local | cib_xpath, NULL);
- free(xml_search);
+ free_xml(xml_search);
return rc == pcmk_ok ? TRUE : FALSE;
}