diff options
author | Rob Austein <sra@hactrn.net> | 2010-01-23 23:02:58 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-01-23 23:02:58 +0000 |
commit | c3e407f1235fbc8e2702698742bc9c9f9c7f29c4 (patch) | |
tree | 82a79ac63b3fc4b920d9f5af731f8d06e812a2aa /pow | |
parent | 4753607ebf3dc540bc0aea37b3c4872e0de158f8 (diff) |
Cleanup
svn path=/pow/POW-0.7/POW.c; revision=2967
Diffstat (limited to 'pow')
-rw-r--r-- | pow/POW-0.7/POW.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/pow/POW-0.7/POW.c b/pow/POW-0.7/POW.c index 67ff5fa7..e4d74748 100644 --- a/pow/POW-0.7/POW.c +++ b/pow/POW-0.7/POW.c @@ -34,15 +34,6 @@ /* */ /*****************************************************************************/ -/* - * There's some reference count cleanup code that does not make a lot - * of sense to me. Certainly some of the code dealing with reference - * counts was just broken, but I'm leery of changing too much at once, - * so stuff that's just weird is under a compile-time conditional so I - * can back it out easily if changing it turns out to have been a mistake. - */ -#define XXX_SRA_REFERENCE_COUNT_CLEANUP 1 - #include <Python.h> #include <openssl/opensslconf.h> @@ -793,28 +784,8 @@ stack_to_tuple_helper(_STACK *sk, PyObject *(*handler)(void *)) error: -#if XXX_SRA_REFERENCE_COUNT_CLEANUP - Py_XDECREF(obj); Py_XDECREF(result_list); - -#else - - if (obj) { - Py_XDECREF(obj); - } - - if (result_list) { - n = PyList_Size(result_list); - for (i = 0; i < n; i++) { - obj = PyList_GetItem(result_list, i); - Py_XDECREF(obj); - } - Py_XDECREF(result_list); - } - -#endif - return NULL; } @@ -2853,24 +2824,7 @@ x509_crl_object_helper_get_revoked(STACK_OF(X509_REVOKED) *revoked) error: Py_XDECREF(revoke_obj); - -#if XXX_SRA_REFERENCE_COUNT_CLEANUP - Py_XDECREF(result_list); - -#else - - if (result_list) { - inlist = PyList_Size(result_list); - for (i = 0; i < inlist; i++) { - item = PyList_GetItem(result_list, i); - Py_XDECREF(item); - } - Py_XDECREF(result_list); - } - -#endif - return NULL; } @@ -4671,24 +4625,7 @@ ssl_object_get_ciphers(ssl_object *self, PyObject *args) error: Py_XDECREF(name); - -#if XXX_SRA_REFERENCE_COUNT_CLEANUP - Py_XDECREF(list); - -#else - - if (list) { - inlist = PyList_Size(list); - for (i = 0; i < inlist; i++) { - name = PyList_GetItem(list, i); - Py_XDECREF(name); - } - Py_XDECREF(list); - } - -#endif - return NULL; } |