Skip to content

Commit

Permalink
[3.9] bpo-46383: Fix signature of zoneinfo module_free function (pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored and kumaraditya303 committed Jan 15, 2022
1 parent 455ed45 commit d8fea49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -0,0 +1,2 @@
Fix invalid signature of ``_zoneinfo``'s ``module_free`` function to resolve
a crash on wasm32-emscripten platform.
2 changes: 1 addition & 1 deletion Modules/_zoneinfo.c
Expand Up @@ -2613,7 +2613,7 @@ static PyTypeObject PyZoneInfo_ZoneInfoType = {
// Specify the _zoneinfo module
static PyMethodDef module_methods[] = {{NULL, NULL}};
static void
module_free()
module_free(void *m)
{
Py_XDECREF(_tzpath_find_tzfile);
_tzpath_find_tzfile = NULL;
Expand Down

0 comments on commit d8fea49

Please sign in to comment.