Cleanup "ex data" in the test harness - this data is probably not leaking, it just gets allocated once and then is long-lived, I think
diff --git a/OpenSSL/test/util.py b/OpenSSL/test/util.py
index d58f922..88dc79b 100644
--- a/OpenSSL/test/util.py
+++ b/OpenSSL/test/util.py
@@ -38,6 +38,7 @@
         super(TestCase, self).setUp()
         self._before = set(memdbg.heap)
 
+
     def tearDown(self):
         """
         Clean up any files or directories created using :py:meth:`TestCase.mktemp`.
@@ -105,6 +106,10 @@
             stack.insert(0, "Leaked 0x%x at:\n" % (ptr,))
             return "".join(stack)
 
+        # Clean up some long-lived allocations so they won't be reported as
+        # memory leaks.
+        api.CRYPTO_cleanup_all_ex_data()
+
         after = set(memdbg.heap)
         leak = after - self._before
         if leak: