From 66a8a4f02eadf9c391be95712319bbca85cca8bc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 15 Nov 2023 14:26:09 +0100 Subject: [PATCH] utils: Fix Coverity ID 240113 Not a leak, but Coverity does not understand talloc well enough. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/utils/net_ads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index e7f9a4c1989..d95a2097416 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -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; -- 2.11.4.GIT