Upvote:1
A visa is linked to a passport number. If you renew a passport and the visa associated with it is still valid you shouldn't move the visa in the new passport but leave it in the old one and present both when passing a border (if that visa is requested at that border).
In your case as the passports are from different countries this visa shouldn't be valid anymore unless maybe you'd renew your Brazilian passport.
As @user102008 said, there is no need for a visa to leave US. In US, Canada and many other countries there are no exit checks.
Upvote:3
Can I leave US with a passport from Venezuela?
The U.S. has no exit checks. So pretty much anyone can leave the U.S. fine as long as they can enter the destination country.
My visa has the Brazilian passport number, but if the passport is not valid any more is my visa also not valid?
The visa would be valid if used with another Brazilian passport. But since you do not have a Brazilian passport, no, the visa is not valid.