char *uuid_calc = NULL;  if(crm_uuid_cache == NULL) { crm_uuid_cache = g_hash_table_new_full( g_str_hash, g_str_equal, g_hash_destroy_str, g_hash_destroy_str); }  CRM_DEV_ASSERT(uname != NULL);  /* avoid blocking calls where possible */ uuid_calc = g_hash_table_lookup(crm_uuid_cache, uname); if(uuid_calc != NULL) { crm_xml_add(node, attr, uuid_calc); return; }  crm_malloc0(uuid_calc, sizeof(char)*50);  if(uuid_calc != NULL) { cl_uuid_t uuid_raw;  if(hb->llc_ops->get_uuid_by_name( hb, uname, &uuid_raw) == HA_FAIL) { crm_err("Could not calculate UUID for %s", uname); crm_free(uuid_calc); uuid_calc = crm_strdup(uname);  } else { cl_uuid_unparse(&uuid_raw, uuid_calc); g_hash_table_insert( crm_uuid_cache, crm_strdup(uname), crm_strdup(uuid_calc)); } crm_xml_add(node, attr, uuid_calc); }  crm_free(uuid_calc); }/*memory leak*/ /* BEAM BUG - this is not a memory leak */ 
const char *uuid_calc = get_uuid(hb, uname); crm_xml_add(node, attr, uuid_calc); return; } 
set_uuid(ll_cluster_t *hb,crm_data_t *node,const char *attr,const char *uname) {	char *uuid_calc = NULL;	if(crm_uuid_cache == NULL) {		crm_uuid_cache = g_hash_table_new_full(			g_str_hash, g_str_equal,			g_hash_destroy_str, g_hash_destroy_str);	}		CRM_DEV_ASSERT(uname != NULL);	/* avoid blocking calls where possible */	uuid_calc = g_hash_table_lookup(crm_uuid_cache, uname);	if(uuid_calc != NULL) {		crm_xml_add(node, attr, uuid_calc);		return;	}		crm_malloc0(uuid_calc, sizeof(char)*50);		if(uuid_calc != NULL) {		cl_uuid_t uuid_raw;				if(hb->llc_ops->get_uuid_by_name(			   hb, uname, &uuid_raw) == HA_FAIL) {			crm_err("Could not calculate UUID for %s", uname);			crm_free(uuid_calc);			uuid_calc = crm_strdup(uname);					} else {			cl_uuid_unparse(&uuid_raw, uuid_calc);			g_hash_table_insert(				crm_uuid_cache,				crm_strdup(uname), crm_strdup(uuid_calc));		}		crm_xml_add(node, attr, uuid_calc);	}		crm_free(uuid_calc);}/*memory leak*/ /* BEAM BUG - this is not a memory leak */
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/0aeaa1d9f77db488f2e49e48c83ca41435a0ff8e/utils.c/clean/lib/crm/common/utils.c