gh-111178: Fix locale_free() signature (#124896)

This commit is contained in:
Victor Stinner 2024-10-02 15:58:47 +02:00 committed by GitHub
parent 2c050d4bc2
commit 1d4e3e0585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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 = {
@ -895,7 +895,7 @@ static struct PyModuleDef _localemodule = {
_locale_slots,
locale_traverse,
locale_clear,
(freefunc)locale_free,
locale_free,
};
PyMODINIT_FUNC