summaryrefslogtreecommitdiff
path: root/source4/smb_server/conn.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-06 05:57:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:46 -0500
commit8db2f256e467ec9aaa129a34ef28b8eac3721251 (patch)
tree973fe846951c07de092c3e5a72b37265d5498676 /source4/smb_server/conn.c
parentcec1bc8fd71511a35de652dbc2a688df0770e2f2 (diff)
downloadsamba-8db2f256e467ec9aaa129a34ef28b8eac3721251.tar.gz
samba-8db2f256e467ec9aaa129a34ef28b8eac3721251.tar.bz2
samba-8db2f256e467ec9aaa129a34ef28b8eac3721251.zip
r508: fixed a place where we used free() on memory from a talloc(). The new
talloc code catches errors like this. (This used to be commit 22aa425c96030f55f6202bca1e1a876b0bc03f03)
Diffstat (limited to 'source4/smb_server/conn.c')
-rw-r--r--source4/smb_server/conn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/smb_server/conn.c b/source4/smb_server/conn.c
index 0498b3cb5d..f8cb145cd8 100644
--- a/source4/smb_server/conn.c
+++ b/source4/smb_server/conn.c
@@ -152,7 +152,6 @@ void conn_free(struct server_context *smb, struct tcon_context *conn)
bitmap_clear(smb->tree.bmap, conn->cnum);
smb->tree.num_open--;
- ZERO_STRUCTP(conn);
- SAFE_FREE(conn);
+ talloc_destroy(conn->mem_ctx);
}