summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-28 21:42:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:28 -0500
commit16ed45d627f4c9169ec919875b24f8459575467b (patch)
tree5212174c1d61db0735279b388a76221cdc01ecdb /source4
parentda0e9d5f6239b809f7a930e22ff473fd38117ca1 (diff)
downloadsamba-16ed45d627f4c9169ec919875b24f8459575467b.tar.gz
samba-16ed45d627f4c9169ec919875b24f8459575467b.tar.bz2
samba-16ed45d627f4c9169ec919875b24f8459575467b.zip
r2738: free up the session information as soon as it is invalidated in the
RAW-CONTEXT test case (This used to be commit f4a7a3282af6c6ff771547d2efdbba0fe0451b3e)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c
index ad8245faaf..33eab4a0c3 100644
--- a/source4/torture/raw/context.c
+++ b/source4/torture/raw/context.c
@@ -173,6 +173,7 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
printf("logoff the new vuid\n");
status = smb_raw_ulogoff(session);
CHECK_STATUS(status, NT_STATUS_OK);
+ talloc_free(session);
printf("the new vuid should not now be accessible\n");
status = smb_raw_write(tree, &wr);
@@ -186,7 +187,6 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
CHECK_STATUS(status, NT_STATUS_INVALID_HANDLE);
talloc_free(tree);
- talloc_free(session);
done:
return ret;