Add missing INCREF.

Backport candidate.
This commit is contained in:
Neil Schemenauer 2005-06-18 17:37:06 +00:00
parent 610d9dd38d
commit 3b1cbf9ba0
1 changed files with 1 additions and 0 deletions

View File

@ -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