From: Christian Heimes Date: Sat, 6 Oct 2012 13:09:06 +0000 (+0200) Subject: fix possible memory leak, dealloc newobj X-Git-Tag: v3.4.0a1~2344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c018f57186bed05a129a0eda5d9ae11d94da5189;p=thirdparty%2FPython%2Fcpython.git fix possible memory leak, dealloc newobj --- diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c index 446fe923622b..2ce207d7f8f6 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);