Fix memleak I accidently introduced when reading from tdb.
authorJeremy Allison <jra@samba.org>
Wed, 10 Nov 2010 00:55:43 +0000 (16:55 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 10 Nov 2010 01:56:21 +0000 (01:56 +0000)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 10 01:56:21 UTC 2010 on sn-devel-104

source3/auth/user_util.c

index 9ae81fdec885b6fd668fea1deb9f94bce6bcd46a..d6c47a83321eb6918134ac022e30897afa3e4a7c 100644 (file)
@@ -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;
        }