Skip to content

Commit 7a822c9

Browse files
bpo-46383: Fix signature of zoneinfo module_free function (GH-30607) (GH-30610)
(cherry picked from commit cfbde65) Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Christian Heimes <christian@python.org>
1 parent 1345b46 commit 7a822c9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix invalid signature of ``_zoneinfo``'s ``module_free`` function to resolve
2+
a crash on wasm32-emscripten platform.

Modules/_zoneinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2608,7 +2608,7 @@ static PyTypeObject PyZoneInfo_ZoneInfoType = {
26082608
// Specify the _zoneinfo module
26092609
static PyMethodDef module_methods[] = {{NULL, NULL}};
26102610
static void
2611-
module_free(void)
2611+
module_free(void *m)
26122612
{
26132613
Py_XDECREF(_tzpath_find_tzfile);
26142614
_tzpath_find_tzfile = NULL;

0 commit comments

Comments
 (0)