diff options
| author | Georg Brandl <georg@python.org> | 2007-10-24 21:14:07 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-10-24 21:14:07 +0000 |
| commit | f0f4d1cf297628a441a0ee5f7841c869af5f2b4a (patch) | |
| tree | 7b080445735576cc6f3529eefae3863169f65434 /Objects/codeobject.c | |
| parent | 12be330ea3f71a703dd51e4100575ff8113069ae (diff) | |
| download | cpython-f0f4d1cf297628a441a0ee5f7841c869af5f2b4a.tar.gz | |
Fix a refleak for `filename', introduced in rev. 58466.
Also remove an unnecessary incref/decref for `name'.
Diffstat (limited to 'Objects/codeobject.c')
| -rw-r--r-- | Objects/codeobject.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 7aeddcc105..b9a26bae23 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -66,9 +66,6 @@ PyCode_New(int argcount, int kwonlyargcount, PyErr_BadInternalCall(); return NULL; } - Py_INCREF(name); - Py_INCREF(filename); - intern_strings(names); intern_strings(varnames); intern_strings(freevars); @@ -110,7 +107,6 @@ PyCode_New(int argcount, int kwonlyargcount, co->co_lnotab = lnotab; co->co_zombieframe = NULL; } - Py_DECREF(name); return co; } |
