From 6191551ad6b122d49878843cb2aab8070f10c180 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 3 Apr 1997 18:31:43 +0000 Subject: [PATCH] Remove a redundant XINCREF(value). This caused the reference count of all locals to be upped by one when `from import ' was executed. --- Objects/frameobject.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Objects/frameobject.c b/Objects/frameobject.c index ab36e676675..1936138cbf2 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -337,7 +337,6 @@ locals_2_fast(f, clear) INCREF(value); if (value != NULL || clear) { XDECREF(fast[j]); - XINCREF(value); fast[j] = value; } }