Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f63fae commit c019158Copy full SHA for c019158
1 file changed
Python/ceval.c
@@ -4245,6 +4245,9 @@ do_raise(PyObject *exc, PyObject *cause)
4245
goto raise_error;
4246
}
4247
4248
+ assert(type != NULL);
4249
+ assert(value != NULL);
4250
+
4251
if (cause) {
4252
PyObject *fixed_cause;
4253
if (PyExceptionClass_Check(cause)) {
@@ -4271,8 +4274,8 @@ do_raise(PyObject *exc, PyObject *cause)
4271
4274
4272
4275
PyErr_SetObject(type, value);
4273
4276
/* PyErr_SetObject incref's its arguments */
- Py_XDECREF(value);
- Py_XDECREF(type);
4277
+ Py_DECREF(value);
4278
+ Py_DECREF(type);
4279
return 0;
4280
4281
raise_error:
0 commit comments