8000 Forgot to release local buffer · python/cpython@4b58915 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b58915

Browse files
committed
Forgot to release local buffer
1 parent b473f8c commit 4b58915

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/sha3module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ py_sha3_new_impl(PyTypeObject *type, PyObject *data, int usedforsecurity)
136136
sha3_update(self->hash_state, buf.buf, buf.len);
137137
}
138138

139+
PyBuffer_Release(&buf);
140+
139141
return (PyObject *)self;
140142

141143
error:

0 commit comments

Comments
 (0)
0