From: Volker Lendecke Date: Fri, 6 Apr 2018 09:02:48 +0000 (+0200) Subject: idmap: Use TALLOC_FREE instead of explicit code X-Git-Tag: ldb-1.4.0~674 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad90835c2bdf954622935139ec64ce640aa49b4b;p=thirdparty%2Fsamba.git idmap: Use TALLOC_FREE instead of explicit code Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/idmap_ad_nss.c b/source3/winbindd/idmap_ad_nss.c index d65e1e9de8d..8e960b8a21e 100644 --- a/source3/winbindd/idmap_ad_nss.c +++ b/source3/winbindd/idmap_ad_nss.c @@ -353,9 +353,7 @@ static NTSTATUS nss_ad_map_from_alias( TALLOC_CTX *mem_ctx, nt_status = NT_STATUS_OK; done: - if (filter) { - talloc_destroy(filter); - } + TALLOC_FREE(filter); if (msg) { ads_msgfree(ctx->ads, msg); }