Batches are ref counted and shouldn't have been freed directly