summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/python/pysss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c
index 4dd035135..8f9a20b68 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);