summaryrefslogtreecommitdiff
path: root/source3/torture/cmd_vfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-02 16:23:40 +0100
committerVolker Lendecke <vl@samba.org>2012-02-02 16:26:16 +0100
commit25d3a2e83c66371eeee9a5f34a5379b87435e687 (patch)
tree7c0fb628bb5da074d5e4e012725a3bb12ca0a510 /source3/torture/cmd_vfs.c
parentdab7b0e7171edf5b11af154175711e2b972c000b (diff)
downloadsamba-25d3a2e83c66371eeee9a5f34a5379b87435e687.tar.gz
samba-25d3a2e83c66371eeee9a5f34a5379b87435e687.tar.bz2
samba-25d3a2e83c66371eeee9a5f34a5379b87435e687.zip
s3-vfstest: Fix a double-free on closing a file
"mem_ctx" will be gone after we leave the routine
Diffstat (limited to 'source3/torture/cmd_vfs.c')
-rw-r--r--source3/torture/cmd_vfs.c2
1 files changed, 1 insertions, 1 deletions
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);