summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2005-06-18 17:37:06 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2005-06-18 17:37:06 (GMT)
commit3b1cbf9ba0089981e7d0135cbd2f469827a3d294 (patch)
tree0b64129bf7317b8e4c852f883d043336b8d58991 /Modules/gcmodule.c
parent610d9dd38d92eb4cb0f600def00fdbb64b095335 (diff)
downloadcpython-3b1cbf9ba0089981e7d0135cbd2f469827a3d294.zip
cpython-3b1cbf9ba0089981e7d0135cbd2f469827a3d294.tar.gz
cpython-3b1cbf9ba0089981e7d0135cbd2f469827a3d294.tar.bz2
Add missing INCREF.
Backport candidate.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index c563ed8..38494ea 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -1166,6 +1166,7 @@ initgc(void)
if (garbage == NULL)
return;
}
+ Py_INCREF(garbage);
if (PyModule_AddObject(m, "garbage", garbage) < 0)
return;
#define ADD_INT(NAME) if (PyModule_AddIntConstant(m, #NAME, NAME) < 0) return