The question "where does evil come from?" runs through the book, and Augustine's answer changes. While he is a Manichee, he accepts that evil is a substance, a mass that fights against God, and says he did not yet know that evil is the privation of good (Book III, ch. 7).
The turn comes in Book VII. Augustine reasons that everything that exists, as long as it exists, is good, because only what is good can be corrupted and lose the good it has; so the evil he was looking for is not a substance, because if it were, it would be good (Book VII, ch. 12). That is why nothing God made is evil in itself: there are things that, next to others, do not fit, but taken together all are good (Book VII, ch. 13).
It remains to ask what sin is, then, and the answer comes from within: when he asks what iniquity is, he finds not a substance but the perversity of a will that turns away from God, the supreme substance, toward lower things (Book VII, ch. 16). Evil stops being something that comes from outside and becomes a wrong direction of the will, the same movement the book shows in the theft of the pears and in the postponement of the conversion.