From: Volker Lendecke Date: Thu, 2 Jan 2020 10:15:48 +0000 (+0100) Subject: lib: Remove an unused variable from security_token_debug() X-Git-Tag: ldb-2.1.0~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba97f408d81e98863732a8c6bcb59de7a8fedd6b;p=thirdparty%2Fsamba.git lib: Remove an unused variable from security_token_debug() Signed-off-by: Volker Lendecke Reviewed-by: David Disseldorp --- diff --git a/libcli/security/security_token.c b/libcli/security/security_token.c index de75033deae..ef6ee0ff661 100644 --- a/libcli/security/security_token.c +++ b/libcli/security/security_token.c @@ -46,7 +46,6 @@ struct security_token *security_token_initialise(TALLOC_CTX *mem_ctx) ****************************************************************************/ void security_token_debug(int dbg_class, int dbg_lev, const struct security_token *token) { - TALLOC_CTX *mem_ctx; uint32_t i; if (!token) { @@ -54,11 +53,6 @@ void security_token_debug(int dbg_class, int dbg_lev, const struct security_toke return; } - mem_ctx = talloc_init("security_token_debug()"); - if (!mem_ctx) { - return; - } - DEBUGC(dbg_class, dbg_lev, ("Security token SIDs (%lu):\n", (unsigned long)token->num_sids)); for (i = 0; i < token->num_sids; i++) { @@ -70,8 +64,6 @@ void security_token_debug(int dbg_class, int dbg_lev, const struct security_toke } security_token_debug_privileges(dbg_class, dbg_lev, token); - - talloc_free(mem_ctx); } /* These really should be cheaper... */