summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sha3/sha3module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c
index 446fe92..2ce207d 100644
--- a/Modules/_sha3/sha3module.c
+++ b/Modules/_sha3/sha3module.c
@@ -474,8 +474,7 @@ SHA3_factory(PyObject *args, PyObject *kwdict, const char *fmt,
error:
if (newobj) {
- SHA3_clearstate(newobj->hash_state);
- /* self->lock is always NULL */
+ SHA3_dealloc(newobj);
}
if (data_obj) {
PyBuffer_Release(&buf);