/* Destroy a dynamically created remote heap. Deallocate only if the areas are not static  */
void rh_destroy(rh_info_t *info)
/* Destroy a dynamically created remote heap. Deallocate only if the areas are not static  */
void rh_destroy(rh_info_t *info)
{
	if ((info->flags & RHIF_STATIC_BLOCK) == 0 && info->block != NULL)
		kfree(info->block);
	if ((info->flags & RHIF_STATIC_INFO) == 0)
		kfree(info);
}