diff options
author | Volker Lendecke <vl@samba.org> | 2013-10-20 17:25:27 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-10-21 16:34:40 -0700 |
commit | 71c8cd19cf079c7e1462a9ca4432725e3623f7cd (patch) | |
tree | 11ee917c77846c1c38050e2ec6410fd06d65a492 | |
parent | e8a77df79e73599bb18f30c139edeece45846239 (diff) | |
download | samba-71c8cd19cf079c7e1462a9ca4432725e3623f7cd.tar.gz samba-71c8cd19cf079c7e1462a9ca4432725e3623f7cd.tar.bz2 samba-71c8cd19cf079c7e1462a9ca4432725e3623f7cd.zip |
winbind3: Fix CID 241468 Resource leak
We were leaking centry in this error case
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 72529276c8..91c19fa2b1 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2090,6 +2090,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain, } else { /* something's definitely wrong */ result = centry->status; + centry_free(centry); goto error; } |