From a95970d3b7eb8913f026395084c909548c5f7b6b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 9 Nov 2010 16:55:43 -0800 Subject: Fix memleak I accidently introduced when reading from tdb. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Nov 10 01:56:21 UTC 2010 on sn-devel-104 --- source3/auth/user_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c index 9ae81fdec8..d6c47a8332 100644 --- a/source3/auth/user_util.c +++ b/source3/auth/user_util.c @@ -101,6 +101,7 @@ static bool fetch_map_from_gencache(TALLOC_CTX *ctx, } TALLOC_FREE(*p_user_out); *p_user_out = talloc_strdup(ctx, value); + SAFE_FREE(value); if (!*p_user_out) { return false; } -- cgit