Kaydet (Commit) 3b1cbf9b authored tarafından Neil Schemenauer's avatar Neil Schemenauer

Add missing INCREF.

Backport candidate.
üst 610d9dd3
...@@ -1166,6 +1166,7 @@ initgc(void) ...@@ -1166,6 +1166,7 @@ initgc(void)
if (garbage == NULL) if (garbage == NULL)
return; return;
} }
Py_INCREF(garbage);
if (PyModule_AddObject(m, "garbage", garbage) < 0) if (PyModule_AddObject(m, "garbage", garbage) < 0)
return; return;
#define ADD_INT(NAME) if (PyModule_AddIntConstant(m, #NAME, NAME) < 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