mirror of https://github.com/python/cpython
fix possible memory leak, dealloc newobj
This commit is contained in:
parent
23c5bb4030
commit
c018f57186
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue