commit | 026f6643c72efc992a8498784f3dfa4e083dea81 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Wed Apr 20 18:59:33 2011 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Wed Apr 20 18:59:33 2011 -0400 |
tree | 73894d17039835163b8cd0c16dc8edd044cf52c4 | |
parent | 57e604a872cb60bb74260ae677fb2cadb0bdbe82 [diff] [blame] |
Fix a lot of reference counting bugs introduced by stupid copy/pasting
diff --git a/OpenSSL/rand/rand.c b/OpenSSL/rand/rand.c index a2ffa35..8307ac6 100644 --- a/OpenSSL/rand/rand.c +++ b/OpenSSL/rand/rand.c
@@ -290,7 +290,7 @@ /* PyModule_AddObject steals a reference. */ - Py_INCREF((PyObject *)&rand_Error); + Py_INCREF(rand_Error); if (PyModule_AddObject(module, "Error", rand_Error) != 0) { goto error; }