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:
Guido van Rossum 1997-04-03 18:31:43 +00:00
parent d641d67b89
commit 6191551ad6

View File

@ -337,7 +337,6 @@ locals_2_fast(f, clear)
INCREF(value);
if (value != NULL || clear) {
XDECREF(fast[j]);
XINCREF(value);
fast[j] = value;
}
}