Fix a refleak for `filename', introduced in rev. 58466.

Also remove an unnecessary incref/decref for `name'.
This commit is contained in:
Georg Brandl 2007-10-24 21:14:07 +00:00
parent 5a2f7e60da
commit d2093f7793
1 changed files with 0 additions and 4 deletions

View File

@ -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;
}