Add python_destroy --- commit 113545c895789bc9e16b3321b7636bef01289d90 tree 743555c505186ec716ff7255127ef6f5923a60d0 parent 2803bf1c6d966ed8b5a1ea6deb54ab728df32277 author <stingray@boxster64.stingr.net> Sun, 29 Jan 2006 15:21:40 +0300 committer <stingray@boxster64.stingr.net> Sun, 29 Jan 2006 15:21:40 +0300 src/modules/rlm_python/rlm_python.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/modules/rlm_python/rlm_python.c b/src/modules/rlm_python/rlm_python.c --- a/src/modules/rlm_python/rlm_python.c +++ b/src/modules/rlm_python/rlm_python.c @@ -232,6 +232,12 @@ failed: return -1; } +static int python_destroy() { + Py_XDECREF(radiusd_module); + Py_Finalize(); + return 0; +} + /* Tuple to value pair conversion */ static void add_vp_tuple(VALUE_PAIR **vpp, PyObject *pValue, const char *function_name) { @@ -774,5 +780,5 @@ module_t rlm_python = { NULL /* post-auth */ }, python_detach, /* detach */ - NULL, /* destroy */ + python_destroy, /* destroy */ }; -- Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key This message represents the official view of the voices in my head
participants (1)
-
Paul P Komkoff Jr