s3-auth Remove pointless destructor
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 Jul 2011 02:29:50 +0000 (12:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Jul 2011 23:17:13 +0000 (09:17 +1000)
All the users of this structure allocate info3 on the session_info

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source3/auth/server_info.c

index 080bd0b058a345d1602d7b385139324ec13dd6aa..0add24b0011252b077fdba85b8e6889ff2913515 100644 (file)
@@ -63,14 +63,6 @@ struct auth_serversupplied_info *make_server_info(TALLOC_CTX *mem_ctx)
        return result;
 }
 
-/* FIXME: do we really still need this ? */
-static int auth3_session_info_dtor(struct auth3_session_info *session_info)
-{
-       TALLOC_FREE(session_info->info3);
-       ZERO_STRUCTP(session_info);
-       return 0;
-}
-
 /***************************************************************************
  Make a server_info struct. Free with TALLOC_FREE().
 ***************************************************************************/
@@ -85,8 +77,6 @@ struct auth3_session_info *make_auth3_session_info(TALLOC_CTX *mem_ctx)
                return NULL;
        }
 
-       talloc_set_destructor(result, auth3_session_info_dtor);
-
        /* Initialise the unix_token to NULL which may save us from
           giving away root access if there is a bug in allocating
           these fields. */