diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst b/Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst new file mode 100644 index 00000000000..8f8b12732a6 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst @@ -0,0 +1,2 @@ +Fix invalid signature of ``_zoneinfo``'s ``module_free`` function to resolve +a crash on wasm32-emscripten platform. diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c index d7945d31aff..cd147aedb4c 100644 --- a/Modules/_zoneinfo.c +++ b/Modules/_zoneinfo.c @@ -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;