diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-06-18 17:37:06 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-06-18 17:37:06 (GMT) |
commit | 3b1cbf9ba0089981e7d0135cbd2f469827a3d294 (patch) | |
tree | 0b64129bf7317b8e4c852f883d043336b8d58991 /Modules | |
parent | 610d9dd38d92eb4cb0f600def00fdbb64b095335 (diff) | |
download | cpython-3b1cbf9ba0089981e7d0135cbd2f469827a3d294.zip cpython-3b1cbf9ba0089981e7d0135cbd2f469827a3d294.tar.gz cpython-3b1cbf9ba0089981e7d0135cbd2f469827a3d294.tar.bz2 |
Add missing INCREF.
Backport candidate.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gcmodule.c | 1 |
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 |