Add a lot of missing Py_INCREF
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c
index 937d159..e68467a 100644
--- a/OpenSSL/crypto/x509.c
+++ b/OpenSSL/crypto/x509.c
@@ -833,9 +833,7 @@
return 0;
}
- /* PyModule_AddObject steals a reference. We need crypto_X509_Type to
- * still be ours at least until the second PyModule_AddObject call
- * below.
+ /* PyModule_AddObject steals a reference.
*/
Py_INCREF((PyObject *)&crypto_X509_Type);
if (PyModule_AddObject(module, "X509", (PyObject *)&crypto_X509_Type) != 0) {