From 25d3a2e83c66371eeee9a5f34a5379b87435e687 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 2 Feb 2012 16:23:40 +0100 Subject: s3-vfstest: Fix a double-free on closing a file "mem_ctx" will be gone after we leave the routine --- source3/torture/cmd_vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 7c44a48f55..667cc1678e 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -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); -- cgit