Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-111178: Fix locale_free() signature
  • Loading branch information
vstinner committed Oct 2, 2024
commit 2aa2d3966fe78c0a7f8978eef73c9802524760db
6 changes: 3 additions & 3 deletions Modules/_localemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,9 +881,9 @@ locale_clear(PyObject *module)
}

static void
locale_free(PyObject *module)
locale_free(void *module)
{
locale_clear(module);
locale_clear((PyObject*)module);
}

static struct PyModuleDef _localemodule = {
Expand All @@ -895,7 +895,7 @@ static struct PyModuleDef _localemodule = {
_locale_slots,
locale_traverse,
locale_clear,
(freefunc)locale_free,
locale_free,
};

PyMODINIT_FUNC
Expand Down