diff options
author | Christian Heimes <christian@python.org> | 2022-01-15 10:52:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 09:52:19 +0100 |
commit | cfbde65df318eea243706ff876e5ef834c085e5f (patch) | |
tree | f2c33f05688da5e4e39aa2f726251c0aa017baf1 | |
parent | 305588c67cdede4ef127ada90c1557bc1ef7c200 (diff) | |
download | cpython-cfbde65df318eea243706ff876e5ef834c085e5f.tar.gz cpython-cfbde65df318eea243706ff876e5ef834c085e5f.zip |
bpo-46383: Fix signature of zoneinfo module_free function (GH-30607)
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-01-14-20-55-34.bpo-46383.v8MTl4.rst | 2 | ||||
-rw-r--r-- | Modules/_zoneinfo.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 cac347071f9..1535721b026 100644 --- a/Modules/_zoneinfo.c +++ b/Modules/_zoneinfo.c @@ -2612,7 +2612,7 @@ static PyTypeObject PyZoneInfo_ZoneInfoType = { // Specify the _zoneinfo module static PyMethodDef module_methods[] = {{NULL, NULL}}; static void -module_free(void) +module_free(void *m) { Py_XDECREF(_tzpath_find_tzfile); _tzpath_find_tzfile = NULL; |