From 728dbab082f2c52d5aea5d16a8ffd84b9a8ab1b1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 21 Jul 2005 13:45:34 +0000 Subject: r8682: fix vfstest, thanks to Rainer Link for spotting this one (This used to be commit a3b89cb5c13b7e51f27b74b87c03002f537154d5) --- source3/torture/cmd_vfs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/torture') diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 974d3b8feed..cc683977e8c 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -286,6 +286,7 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c vfs->files[fd] = SMB_MALLOC_P(struct files_struct); vfs->files[fd]->fsp_name = SMB_STRDUP(argv[1]); + vfs->files[fd]->fh = SMB_MALLOC_P(struct fd_handle); vfs->files[fd]->fh->fd = fd; vfs->files[fd]->conn = vfs->conn; printf("open: fd=%d\n", fd); @@ -345,6 +346,7 @@ static NTSTATUS cmd_close(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, printf("close: ok\n"); SAFE_FREE(vfs->files[fd]->fsp_name); + SAFE_FREE(vfs->files[fd]->fh); SAFE_FREE(vfs->files[fd]); vfs->files[fd] = NULL; return NT_STATUS_OK; -- cgit