From: Volker Lendecke Date: Thu, 22 Aug 2013 11:19:33 +0000 (+0000) Subject: torture: Remove an unused variable X-Git-Tag: talloc-2.1.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971b39bb103410444cfdeaa6e9684c7496a39ab3;p=thirdparty%2Fsamba.git torture: Remove an unused variable Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c index 16db71563d2..f407acc77b7 100644 --- a/source4/torture/smb2/getinfo.c +++ b/source4/torture/smb2/getinfo.c @@ -181,7 +181,6 @@ static bool torture_smb2_buffercheck(struct torture_context *tctx, struct smb2_t */ bool torture_smb2_getinfo(struct torture_context *torture) { - TALLOC_CTX *mem_ctx = talloc_new(NULL); struct smb2_tree *tree; bool ret = true; NTSTATUS status; @@ -212,7 +211,5 @@ bool torture_smb2_getinfo(struct torture_context *torture) ret &= torture_smb2_fsinfo(torture, tree); ret &= torture_smb2_buffercheck(torture, tree); - talloc_free(mem_ctx); - return ret; }