From: Arran Cudbard-Bell Date: Thu, 17 Dec 2020 06:39:14 +0000 (-0600) Subject: Probably want to free the path before finalizing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f40f4533d17f8ab7cbf0bbc28ed3d98116ab303;p=thirdparty%2Ffreeradius-server.git Probably want to free the path before finalizing --- diff --git a/src/modules/rlm_python/rlm_python.c b/src/modules/rlm_python/rlm_python.c index de5cdc19119..cfc85f13ca8 100644 --- a/src/modules/rlm_python/rlm_python.c +++ b/src/modules/rlm_python/rlm_python.c @@ -1147,11 +1147,10 @@ static int mod_load(void) static void mod_unload(void) { PyThreadState_Swap(global_interpreter); /* Swap to the main thread */ + if (default_path) PyMem_RawFree(default_path); Py_Finalize(); if (python_dlhandle) dlclose(python_dlhandle); /* dlclose will SEGV on null handle */ - - if (default_path) PyMem_RawFree(default_path); } /*