summaryrefslogtreecommitdiff
path: root/OpenSSL/crypto/x509name.c
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2011-03-12 22:45:02 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2011-03-12 22:45:02 -0500
commitaed23585b2cf8577c52566069591c63f359a8e43 (patch)
tree6f6eec7d96de1cb56821be32b0a29c77a31fac0f /OpenSSL/crypto/x509name.c
parentd07d57d7da05008a16e9c065240dc92f696650c2 (diff)
downloadpyopenssl-aed23585b2cf8577c52566069591c63f359a8e43.tar.gz
Add a lot of missing Py_INCREF
Diffstat (limited to 'OpenSSL/crypto/x509name.c')
-rw-r--r--OpenSSL/crypto/x509name.c2
1 files changed, 2 insertions, 0 deletions
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 @@ init_crypto_x509name(PyObject *module)
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;