]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
With m_size = -1, freeradius module doesn't clear up correctly
authorNick Porter <nick@portercomputing.co.uk>
Fri, 11 Apr 2025 16:14:34 +0000 (17:14 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 11 Apr 2025 16:34:04 +0000 (17:34 +0100)
Each module instance is getting it's own copy of the module, whereas
m_size = -1 implies it is global and causes a crash on exit when there
are multiple interpreters.

src/modules/rlm_python/rlm_python.c

index 2d86f0dbf767c6b2d01184249a743ef481f2a525..35d3e45f650b2b4be325311ffe09845110f4631f 100644 (file)
@@ -871,7 +871,7 @@ static PyObject *python_module_init(void)
                PyModuleDef_HEAD_INIT,
                .m_name = "freeradius",
                .m_doc = "freeRADIUS python module",
-               .m_size = -1,
+               .m_size = 0,
                .m_methods = module_methods
        };