From: Ralph Boehme Date: Fri, 29 May 2020 09:44:28 +0000 (+0200) Subject: smbd: don't free smb_fname_parent in unix_mode() X-Git-Tag: ldb-2.2.0~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbe80ceef85fad0655a0708b3884edea04a75590;p=thirdparty%2Fsamba.git smbd: don't free smb_fname_parent in unix_mode() The TALLOC_FREEs should have been removed as part of 45a560bce3ef06c211e60e3932521303cc396896. Sorry! Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri May 29 20:02:55 UTC 2020 on sn-devel-184 --- diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index b7942f10afb..4012d6e64c9 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -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)) {