From: Volker Lendecke Date: Fri, 16 Mar 2007 13:09:09 +0000 (+0000) Subject: r21853: Fix a valgrind error X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~937 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0d16cc55ab830dcfd4f8c6c7bf64d2b9b6dd55b;p=thirdparty%2Fsamba.git r21853: Fix a valgrind error --- diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c index 3881e43bd18..cd9d8d7092a 100644 --- a/source/passdb/lookup_sid.c +++ b/source/passdb/lookup_sid.c @@ -414,6 +414,11 @@ static BOOL wb_lookup_rids(TALLOC_CTX *mem_ctx, return True; } + if (!(*domain_name = talloc_strdup(mem_ctx, *domain_name))) { + TALLOC_FREE(tmp_ctx); + return False; + } + /* * winbind_lookup_rids allocates its own array. We've been given the * array, so copy it over