8000 bpo-1635741: port blake2 module to multi-phase init by koubaa · Pull Request #21856 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741: port blake2 module to multi-phase init #21856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
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
1095D
Prev Previous commit
Next Next commit
decref the type
  • Loading branch information
koubaa committed Aug 21, 2020
commit 00a468c7fe14b65230236995ec190c7c62e60a60
3 changes: 3 additions & 0 deletions Modules/_blake2/blake2b_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ py_blake2b_dealloc(PyObject *self)
PyThread_free_lock(obj->lock);
obj->lock = NULL;
}
PyTypeObject *tp = Py_TYPE(self);
Py_DECREF(tp);

PyObject_Del(self);
}

Expand Down
4 changes: 4 additions & 0 deletions Modules/_blake2/blake2s_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ py_blake2s_dealloc(PyObject *self)
PyThread_free_lock(obj->lock);
obj->lock = NULL;
}

PyTypeObject *tp = Py_TYPE(self);
Py_DECREF(tp);

PyObject_Del(self);
}

Expand Down
0