From d3c689fc5c80431b7e72150f72465b3d255a6f02 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Sep 2013 08:57:59 +0200 Subject: lib: Use "mem_ctx" arg in gencache_get Signed-off-by: Volker Lendecke Signed-off-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Sep 5 20:09:21 CEST 2013 on sn-devel-104 --- source3/auth/user_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c index b52f1dd5bc..70ab5ade65 100644 --- a/source3/auth/user_util.c +++ b/source3/auth/user_util.c @@ -96,14 +96,13 @@ static bool fetch_map_from_gencache(TALLOC_CTX *ctx, if (key == NULL) { return false; } - found = gencache_get(key, NULL, &value, NULL); + found = gencache_get(key, ctx, &value, NULL); TALLOC_FREE(key); if (!found) { return false; } TALLOC_FREE(*p_user_out); - *p_user_out = talloc_strdup(ctx, value); - SAFE_FREE(value); + *p_user_out = value; if (!*p_user_out) { return false; } -- cgit