diff options
author | Christian Heimes <christian@cheimes.de> | 2012-10-06 13:09:06 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-10-06 13:09:06 (GMT) |
commit | c018f57186bed05a129a0eda5d9ae11d94da5189 (patch) | |
tree | 442fc86fd4bf24417332eed79e65377fe91c5a08 /Modules/_sha3/sha3module.c | |
parent | 23c5bb4030c6a78fcf0a75a167f2b4c765a61111 (diff) | |
download | cpython-c018f57186bed05a129a0eda5d9ae11d94da5189.zip cpython-c018f57186bed05a129a0eda5d9ae11d94da5189.tar.gz cpython-c018f57186bed05a129a0eda5d9ae11d94da5189.tar.bz2 |
fix possible memory leak, dealloc newobj
Diffstat (limited to 'Modules/_sha3/sha3module.c')
-rw-r--r-- | Modules/_sha3/sha3module.c | 3 |
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); |