added missing (!next_alloc) coalesce code