winbind: Don't leak centry memory.
authorAndreas Schneider <asn@samba.org>
Wed, 20 Feb 2013 08:51:43 +0000 (09:51 +0100)
committerAlexander Bokovoy <ab@samba.org>
Fri, 22 Feb 2013 15:36:14 +0000 (16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/winbindd/winbindd_cache.c

index 4b1e16c27948a1fa1e0208a3916c55e9a5d8fd17..d0603d11c9b1eff8391daef60c694e282e944232 100644 (file)
@@ -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;
                                }