mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-vfstest: Fix a double-free on closing a file
"mem_ctx" will be gone after we leave the routine
This commit is contained in:
parent
dab7b0e717
commit
25d3a2e83c
@ -329,7 +329,7 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
|
||||
}
|
||||
fsp->conn = vfs->conn;
|
||||
|
||||
status = create_synthetic_smb_fname_split(mem_ctx, argv[1], NULL,
|
||||
status = create_synthetic_smb_fname_split(NULL, argv[1], NULL,
|
||||
&smb_fname);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
SAFE_FREE(fsp);
|
||||
|
Loading…
Reference in New Issue
Block a user