From c018f57186bed05a129a0eda5d9ae11d94da5189 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 6 Oct 2012 15:09:06 +0200 Subject: fix possible memory leak, dealloc newobj --- Modules/_sha3/sha3module.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v0.12