From: Volker Lendecke Date: Thu, 2 Feb 2012 15:23:40 +0000 (+0100) Subject: s3-vfstest: Fix a double-free on closing a file X-Git-Tag: tevent-0.9.15~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25d3a2e83c66371eeee9a5f34a5379b87435e687;p=thirdparty%2Fsamba.git s3-vfstest: Fix a double-free on closing a file "mem_ctx" will be gone after we leave the routine --- 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);