]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pdb_samba_dsdb: Simplify pdb_samba_dsdb_get_domain_info()
authorVolker Lendecke <vl@samba.org>
Sun, 12 Jul 2026 08:01:45 +0000 (10:01 +0200)
committerAnoop C S <anoopcs@samba.org>
Mon, 3 Aug 2026 09:05:30 +0000 (09:05 +0000)
"dom_res" is a talloc child of "info"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/passdb/pdb_samba_dsdb.c

index 16d29d256d39eb057f802d6800d7e064eecd7396..8fe306123d9944671a1de64ece9870d9053f2139 100644 (file)
@@ -151,7 +151,6 @@ static struct pdb_domain_info *pdb_samba_dsdb_get_domain_info(
        return info;
 
 fail:
-       TALLOC_FREE(dom_res);
        TALLOC_FREE(info);
        return NULL;
 }