mirror of https://github.com/python/cpython
Fix a refleak for `filename', introduced in rev. 58466.
Also remove an unnecessary incref/decref for `name'.
This commit is contained in:
parent
5a2f7e60da
commit
d2093f7793
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue