SIGN IN SIGN UP

gh-120860: Fix a few bugs in `type_setattro` error paths. (#120861)

Moves the logic to update the type's dictionary to its own function in order
to make the lock scoping more clear.

Also, ensure that `name` is decref'd on the error path.
S
Sam Gross committed
dee63cb35971b87a09ddda5d6f29cd941f570720
Parent: 0153fd0
Committed by GitHub <noreply@github.com> on 6/24/2024, 6:08:23 PM