while(rsc->rsc_cons) { crm_debug("Freeing constraint"); pe_free_rsc_dependancy((rsc_dependancy_t*)rsc->rsc_cons->data); rsc->rsc_cons = rsc->rsc_cons->next; } crm_debug("Freeing constraint list"); if(rsc->rsc_cons != NULL) { g_list_free(rsc->rsc_cons); }  crm_free(rsc->variant_opaque); crm_free(rsc);
common_free(rsc);
void native_free(resource_t *rsc){	crm_debug("Freeing Allowed Nodes");	pe_free_shallow(rsc->allowed_nodes);		while(rsc->rsc_cons) {		crm_debug("Freeing constraint"); 		pe_free_rsc_dependancy((rsc_dependancy_t*)rsc->rsc_cons->data);		rsc->rsc_cons = rsc->rsc_cons->next;	}	crm_debug("Freeing constraint list");	if(rsc->rsc_cons != NULL) {		g_list_free(rsc->rsc_cons);	}	crm_free(rsc->variant_opaque);	crm_free(rsc);}