crm_malloc(color_copy, sizeof(color_t));
crm_malloc0(color_copy, sizeof(color_t));
copy_color(color_t *a_color) {	color_t *color_copy = NULL;	if(a_color == NULL) {		crm_err("Cannot copy NULL");		return NULL;	}		crm_malloc(color_copy, sizeof(color_t));	if(color_copy != NULL) {		color_copy->id      = a_color->id;		color_copy->details = a_color->details;		color_copy->local_weight = 1.0;	}	return color_copy;}