Add free function for sudo Python module.

This reduces the amount of memory leaked on unload.
This commit is contained in:
Todd C. Miller
2023-07-25 09:33:03 -06:00
parent e59c487434
commit 1a00423afd
5 changed files with 30 additions and 5 deletions

View File

@@ -23,7 +23,7 @@
#include "sudo_python_module.h"
static PyTypeObject *sudo_type_ConvMessage;
PyTypeObject *sudo_type_ConvMessage;
static PyObject *
_sudo_ConvMessage__Init(PyObject *py_self, PyObject *py_args, PyObject *py_kwargs)