]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-46383: Fix signature of zoneinfo module_free function (GH-3… (GH-30611)
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Sat, 22 Jan 2022 11:05:55 +0000 (16:35 +0530)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 11:05:55 +0000 (03:05 -0800)
…0607)

Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst [new file with mode: 0644]
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 (file)
index 0000000..8f8b127
--- /dev/null
@@ -0,0 +1,2 @@
+Fix invalid signature of ``_zoneinfo``'s ``module_free`` function to resolve
+a crash on wasm32-emscripten platform.
index d7945d31affea377d85b65ba9664fb3928db8b34..cd147aedb4cdb2d9929d52b5a3307182629bcda7 100644 (file)
@@ -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;