diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 1d99f877e1..c8f86a48dd 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1355,6 +1355,7 @@ PyInit__signal(void) PyDict_SetItemString(d, "SIG_DFL", DefaultHandler) < 0) { goto finally; } + Py_DECREF(DefaultHandler); IgnoreHandler = PyLong_FromVoidPtr((void *)SIG_IGN); if (!IgnoreHandler || diff --git a/Objects/longobject.c b/Objects/longobject.c index 4cf2b0726e..0ad2609882 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -16,10 +16,10 @@ class int "PyObject *" "&PyLong_Type" /*[clinic end generated code: output=da39a3ee5e6b4b0d input=ec0275e3422a36e3]*/ #ifndef NSMALLPOSINTS -#define NSMALLPOSINTS 257 +#define NSMALLPOSINTS 0 #endif #ifndef NSMALLNEGINTS -#define NSMALLNEGINTS 5 +#define NSMALLNEGINTS 0 #endif _Py_IDENTIFIER(little);