summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/clisocket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 07:04:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:17 -0500
commit954869efdb8b0006fd4457a1c6d56a31c3825421 (patch)
tree7b2b7d01997549697e334a77e12a8fa7cd57819c /source4/libcli/raw/clisocket.c
parent3ea916b2278c202c99c80c02e80e588bd7daedb8 (diff)
downloadsamba-954869efdb8b0006fd4457a1c6d56a31c3825421.tar.gz
samba-954869efdb8b0006fd4457a1c6d56a31c3825421.tar.bz2
samba-954869efdb8b0006fd4457a1c6d56a31c3825421.zip
r2655: fixed an error in the shutdown of the sock->transport->session->tree
smbcli raw context handling (This used to be commit d5fd6388751944f11c34e5124d403d57c8670e3b)
Diffstat (limited to 'source4/libcli/raw/clisocket.c')
-rw-r--r--source4/libcli/raw/clisocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libcli/raw/clisocket.c b/source4/libcli/raw/clisocket.c
index 5663672333..8481bc73e2 100644
--- a/source4/libcli/raw/clisocket.c
+++ b/source4/libcli/raw/clisocket.c
@@ -104,6 +104,7 @@ void smbcli_sock_close(struct smbcli_socket *sock)
sock->reference_count--;
if (sock->reference_count <= 0) {
smbcli_sock_dead(sock);
+ talloc_free(sock);
}
}