commit | 3fa28fd07570708962404b97d6200386bd571b51 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Nov 22 11:50:56 2016 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Tue Nov 22 11:50:56 2016 -0800 |
tree | 4a02394fc101e381441ea4df742c43febd9fda3e | |
parent | bbf32e1c9875ab8237a00a20ebc62e5d752adeda [diff] | |
parent | 64e2f9ac86b0f7aade2fe331136beceee975fc91 [diff] |
merge
diff --git a/Python/ceval.c b/Python/ceval.c index b18fd91..b4953a9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -3146,8 +3146,10 @@ if (enter == NULL) goto error; exit = special_lookup(mgr, &PyId___exit__); - if (exit == NULL) + if (exit == NULL) { + Py_DECREF(enter); goto error; + } SET_TOP(exit); Py_DECREF(mgr); res = PyObject_CallFunctionObjArgs(enter, NULL);