mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-46383: Fix signature of zoneinfo module_free function (GH-30607) (GH-30610)
(cherry picked from commit cfbde65df3)
Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
1345b460f5
commit
7a822c9278
2 changed files with 3 additions and 1 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Fix invalid signature of ``_zoneinfo``'s ``module_free`` function to resolve
|
||||
a crash on wasm32-emscripten platform.
|
||||
|
|
@ -2608,7 +2608,7 @@ static PyTypeObject PyZoneInfo_ZoneInfoType = {
|
|||
// Specify the _zoneinfo module
|
||||
static PyMethodDef module_methods[] = {{NULL, NULL}};
|
||||
static void
|
||||
module_free(void)
|
||||
module_free(void *m)
|
||||
{
|
||||
Py_XDECREF(_tzpath_find_tzfile);
|
||||
_tzpath_find_tzfile = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue