The branch, v3-5-test has been updated via 1f1c293... s3: Fix a memleak reported by dmarkey from 030fbf2... Fix builds with external talloc
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test - Log ----------------------------------------------------------------- commit 1f1c293d541fc2ab6dff5932ae1c9ffc1e8b58d3 Author: Volker Lendecke <v...@samba.org> Date: Fri Oct 9 22:58:14 2009 +0200 s3: Fix a memleak reported by dmarkey ----------------------------------------------------------------------- Summary of changes: nsswitch/libwbclient/wbc_sid.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c index b1ecba3..99c9d8e 100644 --- a/nsswitch/libwbclient/wbc_sid.c +++ b/nsswitch/libwbclient/wbc_sid.c @@ -248,9 +248,13 @@ wbcErr wbcLookupSid(const struct wbcDomainSid *sid, if (WBC_ERROR_IS_OK(wbc_status)) { if (pdomain != NULL) { *pdomain = domain; + } else { + TALLOC_FREE(domain); } if (pname != NULL) { *pname = name; + } else { + TALLOC_FREE(name); } if (pname_type != NULL) { *pname_type = name_type; -- Samba Shared Repository