r7899: fixed a crash bug in the RAW-CONTEXT test
authorAndrew Tridgell <tridge@samba.org>
Sat, 25 Jun 2005 04:56:06 +0000 (04:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:47 +0000 (13:18 -0500)
source/torture/raw/context.c

index 948dc4e3e5cc23d1f8ab14ee32b9ae046efe2225..f7fe006917a8873e764fa854a4c9a2910193b5f4 100644 (file)
@@ -138,8 +138,6 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
                status = smb_composite_sesssetup(session3, &setup);
                CHECK_STATUS(status, NT_STATUS_ACCESS_DENIED);
 
-               talloc_free(session3);
-
                printf("create a fouth anonymous security context on the same transport, without extended security\n");
                session4 = smbcli_session_init(cli->transport, mem_ctx, False);