]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: don't free smb_fname_parent in unix_mode()
authorRalph Boehme <slow@samba.org>
Fri, 29 May 2020 09:44:28 +0000 (11:44 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 29 May 2020 20:02:55 +0000 (20:02 +0000)
The TALLOC_FREEs should have been removed as part of
45a560bce3ef06c211e60e3932521303cc396896. Sorry!

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri May 29 20:02:55 UTC 2020 on sn-devel-184

source3/smbd/dosmode.c

index b7942f10afb9fc61ca2a52a6d94fc7a46260d765..4012d6e64c9727e440bbc9674f7035d3d50e2fb2 100644 (file)
@@ -128,7 +128,6 @@ mode_t unix_mode(connection_struct *conn, int dosmode,
                        DBG_ERR("stat failed [%s]: %s\n",
                                smb_fname_str_dbg(smb_fname_parent),
                                strerror(errno));
-                       TALLOC_FREE(smb_fname_parent);
                        return(0);      /* *** shouldn't happen! *** */
                }
 
@@ -138,7 +137,6 @@ mode_t unix_mode(connection_struct *conn, int dosmode,
                         smb_fname_str_dbg(smb_fname), (int)dir_mode));
                /* Clear "result" */
                result = 0;
-               TALLOC_FREE(smb_fname_parent);
        } 
 
        if (IS_DOS_DIR(dosmode)) {