diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/python/pysss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c index 4dd03513..8f9a20b6 100644 --- a/src/python/pysss.c +++ b/src/python/pysss.c @@ -804,6 +804,8 @@ static PyObject *py_sss_getgrouplist(PyObject *self, PyObject *args) idx++; } } + free(groups); + groups = NULL; if (i != idx) { _PyTuple_Resize(&groups_tuple, idx); |