new_color = crm_malloc(sizeof(color_t)); 
crm_malloc(new_color, sizeof(color_t)); if(new_color == NULL) { return NULL; }  
create_color(GListPtr *colors, resource_t *resource, GListPtr resources){	color_t *new_color = NULL;		crm_trace("Creating color");	new_color = crm_malloc(sizeof(color_t));	new_color->id           = color_id++;	new_color->local_weight = 1.0;		crm_trace("Creating color details");	new_color->details = crm_malloc(sizeof(struct color_shared_s));	new_color->details->id                  = new_color->id;	new_color->details->highest_priority    = -1;	new_color->details->chosen_node         = NULL;	new_color->details->candidate_nodes     = NULL;	new_color->details->allocated_resources = NULL;	new_color->details->pending             = TRUE;	if(resource != NULL) {		crm_trace("populating node list");		new_color->details->highest_priority = resource->priority;		new_color->details->candidate_nodes  =			node_list_dup(resource->allowed_nodes, TRUE);	}		crm_debug_action(print_color("Created color", new_color, TRUE));	if(colors != NULL) {		*colors = g_list_append(*colors, new_color);      	}		return new_color;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/69f8a14658aeeee09c5c270dd118170c371c0ecf/utils.c/clean/crm/pengine/utils.c