Align formatting, one TALLOC_FREE is enough
authorVolker Lendecke <vl@sernet.de>
Sat, 1 Dec 2007 14:07:58 +0000 (15:07 +0100)
committerVolker Lendecke <vl@sernet.de>
Wed, 5 Dec 2007 12:45:12 +0000 (13:45 +0100)
source/smbd/nttrans.c

index c19ba6519f8517dc4386aa0b4b75c405d50d889d..bf29a2341d76bb3357b7d739dfe5d1c08c644f87 100644 (file)
@@ -872,8 +872,9 @@ void reply_ntcreate_and_X(connection_struct *conn,
 
                        if (create_options & FILE_NON_DIRECTORY_FILE) {
                                TALLOC_FREE(case_state);
-                               reply_force_nterror(req,
-                                               NT_STATUS_FILE_IS_A_DIRECTORY);
+                               reply_force_nterror(
+                                       req,
+                                       NT_STATUS_FILE_IS_A_DIRECTORY);
                                END_PROFILE(SMBntcreateX);
                                return;
                        }
@@ -1591,7 +1592,8 @@ static void call_nt_transact_create(connection_struct *conn,
                if (NT_STATUS_EQUAL(status, NT_STATUS_FILE_IS_A_DIRECTORY)) {
 
                        /*
-                        * Fail the open if it was explicitly a non-directory file.
+                        * Fail the open if it was explicitly a non-directory
+                        * file.
                         */
 
                        if (create_options & FILE_NON_DIRECTORY_FILE) {
@@ -1663,8 +1665,6 @@ static void call_nt_transact_create(connection_struct *conn,
                }
        }
 
-       TALLOC_FREE(case_state);
-
        file_len = sbuf.st_size;
        fattr = dos_mode(conn,fname,&sbuf);
        if(fattr == 0) {