]> granicus.if.org Git - python/commitdiff
Remove a redundant XINCREF(value). This caused the reference count of
authorGuido van Rossum <guido@python.org>
Thu, 3 Apr 1997 18:31:43 +0000 (18:31 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 3 Apr 1997 18:31:43 +0000 (18:31 +0000)
all locals to be upped by one when `from <module> import <whatever>'
was executed.

Objects/frameobject.c

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