summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-24 10:52:08 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-07-24 14:15:53 +0200
commit50134a87d7b3bb2423ebf962bb1d9a7b90194520 (patch)
treed9bc1170088820c967697775ef04ef15c318ff8a /src/python
parent867174c9d98d703e746b3fde7e48be682b589053 (diff)
downloadsssd-50134a87d7b3bb2423ebf962bb1d9a7b90194520.tar.gz
sssd-50134a87d7b3bb2423ebf962bb1d9a7b90194520.tar.xz
sssd-50134a87d7b3bb2423ebf962bb1d9a7b90194520.zip
Every time release allocated memory in function py_sss_getgrouplist
Coverity: 11922
Diffstat (limited to 'src/python')
-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);