Kaydet (Commit) 19b55f2d authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix subtle bug in cleanup code in PyErr_NormalizeException(), detected

by Marc Lemburg.  There's a path through the code where *val is NULL,
but value isn't, and value should be DECREF'ed.
üst a2e268aa
......@@ -219,8 +219,8 @@ PyErr_NormalizeException(exc, val, tb)
*val = value;
return;
finally:
Py_DECREF(*exc);
Py_DECREF(*val);
Py_DECREF(type);
Py_DECREF(value);
Py_XDECREF(*tb);
PyErr_Fetch(exc, val, tb);
/* normalize recursively */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment