Mercurial > cpython-lru_cache-weakref
diff Objects/codeobject.c @ 43672:8fe24e5eeeff
Fix a refleak for `filename', introduced in rev. 58466.
Also remove an unnecessary incref/decref for `name'.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 24 Oct 2007 21:14:07 +0000 |
| parents | 19319e70fc3e |
| children | 0d462d789b18 |
line wrap: on
line diff
--- a/Objects/codeobject.c Wed Oct 24 21:13:09 2007 +0000 +++ b/Objects/codeobject.c Wed Oct 24 21:14:07 2007 +0000 @@ -66,9 +66,6 @@ PyErr_BadInternalCall(); return NULL; } - Py_INCREF(name); - Py_INCREF(filename); - intern_strings(names); intern_strings(varnames); intern_strings(freevars); @@ -110,7 +107,6 @@ co->co_lnotab = lnotab; co->co_zombieframe = NULL; } - Py_DECREF(name); return co; }
