Somewhat more sophisticated leak reporting
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index aca1589..abe9734 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -22,6 +22,15 @@
 
 
 
+def _new_mem_buf(buffer):
+    bio = _api.BIO_new_mem_buf(buffer, len(buffer))
+    if bio == _api.NULL:
+        1/0
+    bio = _api.ffi.gc(bio, _api.BIO_free)
+    return bio
+
+
+
 def _set_asn1_time(boundary, when):
     if not isinstance(when, bytes):
         raise TypeError("when must be a byte string")
@@ -1748,15 +1757,6 @@
 
 
 
-def _new_mem_buf(buffer):
-    bio = _api.BIO_new_mem_buf(buffer, len(buffer))
-    if bio == _api.NULL:
-        1/0
-    bio = _api.ffi.gc(bio, _api.BIO_free)
-    return bio
-
-
-
 def load_privatekey(type, buffer, passphrase=None):
     """
     Load a private key from a buffer