Skip to content
Merged
Prev Previous commit
Next Next commit
Forgot to release local buffer
  • Loading branch information
msprotz committed May 6, 2023
commit 4b58915accc1a76e1847fbf594ef08f0aa3cfd07
2 changes: 2 additions & 0 deletions Modules/sha3module.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ py_sha3_new_impl(PyTypeObject *type, PyObject *data, int usedforsecurity)
sha3_update(self->hash_state, buf.buf, buf.len);
}

PyBuffer_Release(&buf);

return (PyObject *)self;

error:
Expand Down