mirror of https://github.com/python/cpython
Remove a redundant XINCREF(value). This caused the reference count of
all locals to be upped by one when `from <module> import <whatever>' was executed.
This commit is contained in:
parent
d641d67b89
commit
6191551ad6
|
@ -337,7 +337,6 @@ locals_2_fast(f, clear)
|
|||
INCREF(value);
|
||||
if (value != NULL || clear) {
|
||||
XDECREF(fast[j]);
|
||||
XINCREF(value);
|
||||
fast[j] = value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue