r21270: Fix a memleak
authorVolker Lendecke <vlendec@samba.org>
Sat, 10 Feb 2007 17:46:33 +0000 (17:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:44:57 +0000 (14:44 -0500)
(This used to be commit 918031a99c583b45c854c6d066f56ca6887011dd)

source4/torture/basic/misc.c

index e8f738a97520c00166dfe7f98bb77a2d5c204ffa..3e88e055509526d35d01a5df09adf369b2cb54c5 100644 (file)
@@ -495,6 +495,7 @@ static NTSTATUS benchrw_readwrite(struct torture_context *tctx,struct smbcli_req
        union smb_write wr;
        
        NT_STATUS_NOT_OK_RETURN(req->status);
+       talloc_free(req);
        
        state->completed++;
        /*rotate between writes and reads*/