diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-26 06:44:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:17 -0500 |
commit | 3ea916b2278c202c99c80c02e80e588bd7daedb8 (patch) | |
tree | 95cb6b71a66de1101c568b77b32bd636b2a51b1f /source4/libcli/cliconnect.c | |
parent | dbc2346de8b2f213d8bb7e647c4f187c6103e474 (diff) | |
download | samba-3ea916b2278c202c99c80c02e80e588bd7daedb8.tar.gz samba-3ea916b2278c202c99c80c02e80e588bd7daedb8.tar.xz 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/cliconnect.c')
-rw-r--r-- | source4/libcli/cliconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index 66882f605d6..27caaa9df99 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -211,7 +211,7 @@ struct smbcli_state *smbcli_state_init(void) { struct smbcli_state *cli; - cli = talloc_named(NULL, sizeof(*cli), "smbcli_state"); + cli = talloc_p(NULL, struct smbcli_state); if (cli) { ZERO_STRUCTP(cli); } |