1
0
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:
Volker Lendecke 2012-02-02 16:23:40 +01:00
parent dab7b0e717
commit 25d3a2e83c

View File

@ -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);