r19773: TALLOC_FREE checks for NULL itself
authorVolker Lendecke <vlendec@samba.org>
Sat, 18 Nov 2006 17:05:50 +0000 (17:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:54 +0000 (12:15 -0500)
source/auth/auth_util.c

index 7d6effebc44b23cb860373ea085dd7a3a9609c97..82a13fd9e78be472c41c09a090f96f8b360bf3bd 100644 (file)
@@ -515,10 +515,7 @@ NT_USER_TOKEN *get_root_nt_token( void )
 
 static int server_info_dtor(auth_serversupplied_info *server_info)
 {
-       if (server_info->sam_account != NULL) {
-               TALLOC_FREE(server_info->sam_account);
-       }
-
+       TALLOC_FREE(server_info->sam_account);
        ZERO_STRUCTP(server_info);
        return 0;
 }