summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/clisocket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 06:44:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:17 -0500
commit3ea916b2278c202c99c80c02e80e588bd7daedb8 (patch)
tree95cb6b71a66de1101c568b77b32bd636b2a51b1f /source4/libcli/raw/clisocket.c
parentdbc2346de8b2f213d8bb7e647c4f187c6103e474 (diff)
downloadsamba-3ea916b2278c202c99c80c02e80e588bd7daedb8.tar.gz
samba-3ea916b2278c202c99c80c02e80e588bd7daedb8.tar.bz2
samba-3ea916b2278c202c99c80c02e80e588bd7daedb8.zip
r2654: fixed some more server memory leaks. We are now down to a single leak
of 16 bytes, caused by the 16 byte data_blob in the smb_signing code. (This used to be commit 2f1b788e09686e065d22f621f5c0c585192c6740)
Diffstat (limited to 'source4/libcli/raw/clisocket.c')
-rw-r--r--source4/libcli/raw/clisocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/raw/clisocket.c b/source4/libcli/raw/clisocket.c
index 654d8ee61b..5663672333 100644
--- a/source4/libcli/raw/clisocket.c
+++ b/source4/libcli/raw/clisocket.c
@@ -29,7 +29,7 @@ struct smbcli_socket *smbcli_sock_init(void)
{
struct smbcli_socket *sock;
- sock = talloc_named(NULL, sizeof(*sock), "smbcli_socket");
+ sock = talloc_p(NULL, struct smbcli_socket);
if (!sock) {
return NULL;
}