commit | aed23585b2cf8577c52566069591c63f359a8e43 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Sat Mar 12 22:45:02 2011 -0500 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Sat Mar 12 22:45:02 2011 -0500 |
tree | 6f6eec7d96de1cb56821be32b0a29c77a31fac0f | |
parent | d07d57d7da05008a16e9c065240dc92f696650c2 [diff] [blame] |
Add a lot of missing Py_INCREF
diff --git a/OpenSSL/crypto/x509name.c b/OpenSSL/crypto/x509name.c index ed3302d..a64e6c3 100644 --- a/OpenSSL/crypto/x509name.c +++ b/OpenSSL/crypto/x509name.c
@@ -527,6 +527,8 @@ return 0; } + /* PyModule_AddObject steals a reference. + */ Py_INCREF((PyObject *)&crypto_X509Name_Type); if (PyModule_AddObject(module, "X509NameType", (PyObject *)&crypto_X509Name_Type) != 0) { return 0;