Visitar URL original
gh-99108: Initial import of HACL-SHA3 into Python by msprotz · Pull Request #103597 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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