From: Arran Cudbard-Bell Date: Thu, 17 Dec 2020 14:40:48 +0000 (-0600) Subject: Quiet lsan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c898c907536906c34fa733fec87939ebcbfff801;p=thirdparty%2Ffreeradius-server.git Quiet lsan --- diff --git a/src/modules/rlm_python/rlm_python.c b/src/modules/rlm_python/rlm_python.c index f4d131f35e3..33a267c7c45 100644 --- a/src/modules/rlm_python/rlm_python.c +++ b/src/modules/rlm_python/rlm_python.c @@ -1149,7 +1149,12 @@ static void mod_unload(void) PyThreadState_Swap(global_interpreter); /* Swap to the main thread */ if (default_path) PyMem_Free(default_path); - Py_Finalize(); + /* + * PyImport_Cleanup - Leaks memory in python 3.6 + * should check once we require 3.8 that this is + * still needed. + */ + LSAN_DISABLE(Py_Finalize()); /* Ignore leaks on exit, we don't reload modules so we don't care */ if (python_dlhandle) dlclose(python_dlhandle); /* dlclose will SEGV on null handle */ }