]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
utils: Fix Coverity ID 240113
authorVolker Lendecke <vl@samba.org>
Wed, 15 Nov 2023 13:26:09 +0000 (14:26 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 21 Nov 2023 17:34:36 +0000 (17:34 +0000)
Not a leak, but Coverity does not understand talloc well enough.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/net_ads.c

index e7f9a4c1989db91b3fedfb25ee54c379cfaad65a..d95a20974162c1314419061746389991ebe79f14 100644 (file)
@@ -1140,6 +1140,8 @@ static int ads_user_info(struct net_context *c, int argc, const char **argv)
 
        ret = 0;
 out:
+       TALLOC_FREE(escaped_user);
+       TALLOC_FREE(searchstring);
        ads_msgfree(ads, res);
        TALLOC_FREE(tmp_ctx);
        return ret;