From 324cd98913fef80016326e907c5130d71d88495d Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 11 May 2001 07:13:13 +0000 Subject: Use talloc_strdup() instead of strdup(). (This used to be commit 3b4b5b3c61bb1fe1db15306219f24036bf342e2d) --- source3/libsmb/cli_samr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/cli_samr.c b/source3/libsmb/cli_samr.c index 94c2b6ae92a..538574f4377 100644 --- a/source3/libsmb/cli_samr.c +++ b/source3/libsmb/cli_samr.c @@ -851,7 +851,7 @@ uint32 cli_samr_lookup_rids(struct cli_state *cli, TALLOC_CTX *mem_ctx, fstring tmp; unistr2_to_ascii(tmp, &r.uni_name[i], sizeof(tmp) - 1); - (*names)[i] = strdup(tmp); + (*names)[i] = talloc_strdup(mem_ctx, tmp); (*name_types)[i] = r.type[i]; } -- cgit