From 3e7d06a1fa2102723314552b37410d11fefa928a Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Sat, 22 Jan 2022 16:35:55 +0530 Subject: [PATCH] =?UTF-8?q?[3.9]=20bpo-46383:=20Fix=20signature=20of=20zon?= =?UTF-8?q?einfo=20module=5Ffree=20function=20(GH-3=E2=80=A6=20(GH-30611)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …0607) --- .../Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst | 2 ++ Modules/_zoneinfo.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst 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;