diff options
author | Ryan Kelly <ryan@rfk.id.au> | 2011-03-07 08:51:22 +1100 |
---|---|---|
committer | Ryan Kelly <ryan@rfk.id.au> | 2011-03-07 08:51:22 +1100 |
commit | d27a67e40e2a6e29ec353fd6f083c3daa96be062 (patch) | |
tree | d81eeb6eb7fb3d711885fa5cfed255c8c07c58ae /src/block_template.c | |
parent | 4669b04c6f9e4cb895abd227dffc7f6718425a70 (diff) | |
download | pycrypto-d27a67e40e2a6e29ec353fd6f083c3daa96be062.tar.gz |
fix double-decref of "counter" when Cipher object initialisation fails
Diffstat (limited to 'src/block_template.c')
-rw-r--r-- | src/block_template.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/block_template.c b/src/block_template.c index 9ce2de6..a4be66a 100644 --- a/src/block_template.c +++ b/src/block_template.c @@ -212,7 +212,6 @@ ALGnew(PyObject *self, PyObject *args, PyObject *kwdict) block_init(&(new->st), key, keylen); if (PyErr_Occurred()) { - Py_XDECREF(counter); Py_DECREF(new); return NULL; } |