From: Björn Baumbach Date: Tue, 4 Sep 2018 12:45:05 +0000 (+0200) Subject: s4-auth: use TALLOC_FREE() shortcut X-Git-Tag: tdb-1.3.17~1338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29af2df4e138b4088532e898a152bacfd3a2c830;p=thirdparty%2Fsamba.git s4-auth: use TALLOC_FREE() shortcut Signed-off-by: Björn Baumbach Reviewed-by: Volker Lendecke --- diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c index 03c26a80217..b03a55f2cab 100644 --- a/source4/auth/system_session.c +++ b/source4/auth/system_session.c @@ -62,8 +62,7 @@ _PUBLIC_ struct auth_session_info *system_session(struct loadparm_context *lp_ct lp_ctx, &static_session); if (!NT_STATUS_IS_OK(nt_status)) { - talloc_free(static_session); - static_session = NULL; + TALLOC_FREE(static_session); return NULL; } talloc_set_destructor(static_session, system_session_destructor);