gh-155978: Fix leak in update_slot_after_setattr() (#155979)