diff options
author | Guido van Rossum <guido@python.org> | 1995-01-20 16:55:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-20 16:55:14 (GMT) |
commit | 1919ca7b2850f7db6d4af4c90ac343564a007843 (patch) | |
tree | 63ae61a20e57a70df6aaa072977f3f0de4aa89a1 /Python/ceval.c | |
parent | 10bb1c46f1cbf2b4cca6cf85536c038252273dec (diff) | |
download | cpython-1919ca7b2850f7db6d4af4c90ac343564a007843.zip cpython-1919ca7b2850f7db6d4af4c90ac343564a007843.tar.gz cpython-1919ca7b2850f7db6d4af4c90ac343564a007843.tar.bz2 |
add missing INCREF in RAISE_EXCEPTION
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 08758eb..c7fa697 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -782,6 +782,7 @@ eval_code(co, globals, locals, owner, arg) while (is_tupleobject(w) && gettuplesize(w) > 0) { u = w; w = gettupleitem(u, 0); + INCREF(w); DECREF(u); } if (!is_stringobject(w)) @@ -2494,7 +2495,7 @@ import_from(locals, v, name) { object *w, *x; if (!is_moduleobject(v)) { - err_setstr(TypeError, "import-from require module object"); + err_setstr(TypeError, "import-from requires module object"); return -1; } w = getmoduledict(v); |