[Pacemaker] [PATCH] Low: tools: crm_simulate - fix small xpath memory leak in inject_node_state()

Tim Serong tserong at novell.com
Tue Mar 30 06:43:42 UTC 2010


# HG changeset patch
# User Tim Serong <tserong at novell.com>
# Date 1269931000 -39600
# Node ID 37312dd57d64ef67d829b3dbb868c659438dc495
# Parent  8b867b37c8007042877943b0c74601528db24d0f
Low: tools: crm_simulate - fix small xpath memory leak in inject_node_state()

diff -r 8b867b37c800 -r 37312dd57d64 tools/crm_inject.c
--- a/tools/crm_inject.c	Mon Mar 29 16:45:22 2010 +0200
+++ b/tools/crm_inject.c	Tue Mar 30 17:36:40 2010 +1100
@@ -92,6 +92,7 @@
 	rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, cib_xpath|cib_sync_call|cib_scope_local);
     }
     
+    crm_free(xpath);
     CRM_ASSERT(rc == cib_ok);
     return cib_object;
 }




More information about the Pacemaker mailing list