Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
}
status = move_smb_fname_fsp_link(smb_fname, atname);
- TALLOC_FREE(atname);
if (!NT_STATUS_IS_OK(status)) {
DBG_WARNING("Failed to move pathref for [%s]: %s\n",
smb_fname_str_dbg(smb_fname),
nt_errstr(status));
+ TALLOC_FREE(atname);
TALLOC_FREE(smb_fname);
TALLOC_FREE(dname);
TALLOC_FREE(fname);
}
if (!is_visible_fsp(smb_fname->fsp)) {
+ TALLOC_FREE(atname);
TALLOC_FREE(smb_fname);
TALLOC_FREE(dname);
TALLOC_FREE(fname);
ok = mode_fn(ctx, private_data, smb_fname, get_dosmode, &mode);
if (!ok) {
+ TALLOC_FREE(atname);
TALLOC_FREE(smb_fname);
TALLOC_FREE(dname);
TALLOC_FREE(fname);
continue;
}
+ TALLOC_FREE(atname);
+
/*
* The only valid cases where we return the directory entry if
* it's a symlink are: