commit | e2fdc610043a29a4e95287ff53b1a2c43e401b11 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Jun 08 13:19:58 2003 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Jun 08 13:19:58 2003 +0000 |
tree | 1edb40832050a5d73a60fcb835e993d108ddca9f | |
parent | f0b1a1fca9e70663efa9fba2d123784cbd14616c [diff] [blame] |
Fix SF #749831, copy raises SystemError when getstate raises exception
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 93f34ed..3e15697 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c
@@ -2536,6 +2536,8 @@ if (getstate != NULL) { state = PyObject_CallObject(getstate, NULL); Py_DECREF(getstate); + if (state == NULL) + goto end; } else { state = PyObject_GetAttrString(obj, "__dict__");