summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-24 21:14:07 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-24 21:14:07 (GMT)
commitd2093f7793ef73215cc2c60ce09aa97b12f837a9 (patch)
treee1f9bd79d49daea6fb8b2a004778b22ec1cf5301 /Objects
parent5a2f7e60da093dcdea5d9e508f875285020019a6 (diff)
downloadcpython-d2093f7793ef73215cc2c60ce09aa97b12f837a9.zip
cpython-d2093f7793ef73215cc2c60ce09aa97b12f837a9.tar.gz
cpython-d2093f7793ef73215cc2c60ce09aa97b12f837a9.tar.bz2
Fix a refleak for `filename', introduced in rev. 58466.
Also remove an unnecessary incref/decref for `name'.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 7aeddcc..b9a26ba 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;
}