Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 5050:8579e3441d9b legacy-trunk
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 27 Jan 1997 21:30:09 +0000 |
| parents | 946b2b2a7622 |
| children | 7841c48cdb5b |
line wrap: on
line diff
--- a/Python/ceval.c Fri Jan 24 13:49:28 1997 +0000 +++ b/Python/ceval.c Mon Jan 27 21:30:09 1997 +0000 @@ -1482,11 +1482,10 @@ 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);
