[Python-checkins] [3.9] bpo-46383: Fix signature of zoneinfo module_free function (GH-3… (GH-30611)

miss-islington webhook-mailer at python.org
Sat Jan 22 06:06:00 EST 2022


https://github.com/python/cpython/commit/3e7d06a1fa2102723314552b37410d11fefa928a
commit: 3e7d06a1fa2102723314552b37410d11fefa928a
branch: 3.9
author: Kumar Aditya <59607654+kumaraditya303 at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-01-22T03:05:55-08:00
summary:

[3.9] bpo-46383: Fix signature of zoneinfo module_free function (GH-3… (GH-30611)



…0607)

files:
A Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst
M Modules/_zoneinfo.c

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 0000000000000..8f8b12732a690
--- /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 d7945d31affea..cd147aedb4cdb 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;



More information about the Python-checkins mailing list