diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-02 16:23:40 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-02-02 16:26:16 +0100 |
commit | 25d3a2e83c66371eeee9a5f34a5379b87435e687 (patch) | |
tree | 7c0fb628bb5da074d5e4e012725a3bb12ca0a510 | |
parent | dab7b0e7171edf5b11af154175711e2b972c000b (diff) | |
download | samba-25d3a2e83c66371eeee9a5f34a5379b87435e687.tar.gz samba-25d3a2e83c66371eeee9a5f34a5379b87435e687.tar.xz samba-25d3a2e83c66371eeee9a5f34a5379b87435e687.zip |
s3-vfstest: Fix a double-free on closing a file
"mem_ctx" will be gone after we leave the routine
-rw-r--r-- | source3/torture/cmd_vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 7c44a48f55a..667cc1678e0 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); |