code: func (na *cnmNetworkAllocator) DeallocateTask(t *api.Task) error {
  	delete(na.tasks, t.ID)
  	return na.releaseEndpoints(t.Networks)
  }
docs: // DeallocateTask releases all the endpoint resources for all the
  // networks that a task is attached to.