Skip to content

Commit

Permalink
[3.9] bpo-46383: Fix signature of zoneinfo module_free function (GH-3… (
Browse files Browse the repository at this point in the history
GH-30611)

…0607)
  • Loading branch information
kumaraditya303 authored Jan 22, 2022
1 parent e064af5 commit 3e7d06a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 3e7d06a

Please sign in to comment.