Deallocate content of the dict free list on interpreter shutdown
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 82d247f..9e2b944 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -205,6 +205,18 @@
 static PyDictObject *free_list[PyDict_MAXFREELIST];
 static int numfree = 0;
 
+void
+PyDict_Fini(void)
+{
+	PyListObject *op;
+
+	while (numfree) {
+		op = free_list[numfree--];
+		assert(PyDict_CheckExact(op));
+		PyObject_GC_Del(op);
+	}
+}
+
 PyObject *
 PyDict_New(void)
 {