lib: Remove an unused variable from security_token_debug()
authorVolker Lendecke <vl@samba.org>
Thu, 2 Jan 2020 10:15:48 +0000 (11:15 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 3 Jan 2020 00:04:43 +0000 (00:04 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
libcli/security/security_token.c

index de75033deae7e34f01483280d7a747edc1e2df2d..ef6ee0ff6618175f112ce10293f4182124f7c945 100644 (file)
@@ -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... */