From 50134a87d7b3bb2423ebf962bb1d9a7b90194520 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 24 Jul 2013 10:52:08 +0200 Subject: Every time release allocated memory in function py_sss_getgrouplist Coverity: 11922 --- src/python/pysss.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit