summaryrefslogtreecommitdiffstats
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-03 18:31:43 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-03 18:31:43 (GMT)
commit6191551ad6b122d49878843cb2aab8070f10c180 (patch)
tree077f34d63804a6da6d54fe499574e51bc79ff235 /Objects/frameobject.c
parentd641d67b89a749832a99615eb70f73abc87eced2 (diff)
downloadcpython-6191551ad6b122d49878843cb2aab8070f10c180.zip
cpython-6191551ad6b122d49878843cb2aab8070f10c180.tar.gz
cpython-6191551ad6b122d49878843cb2aab8070f10c180.tar.bz2
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.
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index ab36e67..1936138 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;
}
}