0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

Plug a leak with calling something other than a function or method is

called with keyword arguments -- the keyword and value were leaked.
This affected for instance with a __call__() method.

Bug reported and fix supplied by Jim Fulton.
This commit is contained in:
Guido van Rossum 1997-01-27 21:30:09 +00:00
parent 950361c6ca
commit d0eb429b88

View File

@ -1482,11 +1482,10 @@ eval_code2(co, globals, locals,
object *key = POP();
err = mappinginsert(
kwdict, key, value);
if (err) {
DECREF(key);
DECREF(value);
DECREF(key);
DECREF(value);
if (err)
break;
}
}
if (err) {
DECREF(args);