Kaydet (Commit) c018f571 authored tarafından Christian Heimes's avatar Christian Heimes

fix possible memory leak, dealloc newobj

üst 23c5bb40
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment