Remove the assumption that pkg fields have been allocated and need free()ing.