summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 09:51:43 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:14 +0100
commitb055798c5660e48f88b74478b89ce88aae9ed019 (patch)
tree8b5f3eeaf322c34045848c5f319d6c4900b3ee31
parentcf8be08968f2aae3769140aee00ecac542ff1884 (diff)
downloadsamba-b055798c5660e48f88b74478b89ce88aae9ed019.tar.gz
samba-b055798c5660e48f88b74478b89ce88aae9ed019.tar.bz2
samba-b055798c5660e48f88b74478b89ce88aae9ed019.zip
winbind: Don't leak centry memory.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
-rw-r--r--source3/winbindd/winbindd_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 4b1e16c279..d0603d11c9 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -2144,6 +2144,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain,
} else {
/* something's definitely wrong */
result = centry->status;
+ centry_free(centry);
goto error;
}