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:
|
error:
|
||||||
if (newobj) {
|
if (newobj) {
|
||||||
SHA3_clearstate(newobj->hash_state);
|
SHA3_dealloc(newobj);
|
||||||
/* self->lock is always NULL */
|
|
||||||
}
|
}
|
||||||
if (data_obj) {
|
if (data_obj) {
|
||||||
PyBuffer_Release(&buf);
|
PyBuffer_Release(&buf);
|
||||||
|
|
Loading…
Reference in New Issue