diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-07-24 10:52:08 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-24 14:15:53 +0200 |
commit | 50134a87d7b3bb2423ebf962bb1d9a7b90194520 (patch) | |
tree | d9bc1170088820c967697775ef04ef15c318ff8a /src/python | |
parent | 867174c9d98d703e746b3fde7e48be682b589053 (diff) | |
download | sssd-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.c | 2 |
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); |