Commit 3b1cbf9b authored by Neil Schemenauer's avatar Neil Schemenauer

Add missing INCREF.

Backport candidate.
parent 610d9dd3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment