Skip to content

Commit 85098bc

Browse files
use Py_NewRef in PyException_GetArgs
1 parent 7f2a026 commit 85098bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ PyException_GetArgs(PyObject *self)
572572
{
573573
PyObject *args;
574574
Py_BEGIN_CRITICAL_SECTION(self);
575-
args = Py_XNewRef(_PyBaseExceptionObject_cast(self)->args);
575+
args = Py_NewRef(_PyBaseExceptionObject_cast(self)->args);
576576
Py_END_CRITICAL_SECTION();
577577
return args;
578578
}

0 commit comments

Comments
 (0)