Added _Fini() routines to free up some memory
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 4db2a69..e09758b 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -790,3 +790,20 @@
0, /*tp_as_mapping*/
(hashfunc)int_hash, /*tp_hash*/
};
+
+void
+PyInt_Fini()
+{
+#if NSMALLNEGINTS + NSMALLPOSINTS > 0
+ int i;
+ PyIntObject **p;
+
+ i = NSMALLNEGINTS + NSMALLPOSINTS;
+ p = small_ints;
+ while (--i >= 0) {
+ Py_XDECREF(*p);
+ *p++ = NULL;
+ }
+#endif
+ /* XXX Alas, the free list is not easily and safely freeable */
+}