free_xml(fragment);
free_xml(fragment); free_xml(tmp1);
void send_cib_lrm_update(xmlNodePtr update, gboolean lrm_replace){	xmlNodePtr fragment, tmp1, tmp2;		tmp1 = create_xml_node(NULL, XML_CIB_TAG_STATE);	set_xml_property_copy(tmp1, XML_ATTR_ID, fsa_our_uname);	fragment = create_cib_fragment(tmp1, NULL);	if(lrm_replace) {		tmp2 = create_xml_node(tmp1, "lrm");		process_cib_request(CRM_OPERATION_DELETE, NULL, fragment);		free_xml(tmp2);		add_node_copy(tmp1, update);		process_cib_request(CRM_OPERATION_UPDATE, NULL, fragment);			} else {		add_node_copy(tmp1, update);		send_cib_status_update(tmp1);	}		free_xml(fragment); // takes tmp1 with it}