diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-28 14:03:38 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-28 14:20:17 +0100 |
commit | 57a9fba097a5f5af7833eaf4355667dbfacaec43 (patch) | |
tree | d77ebd135dee8b4691d97019b7addd109fe509e9 /source3 | |
parent | 4d55efe4ab2fed0205d5ce7ffa111b89e0d04c73 (diff) | |
download | samba-57a9fba097a5f5af7833eaf4355667dbfacaec43.tar.gz samba-57a9fba097a5f5af7833eaf4355667dbfacaec43.tar.bz2 samba-57a9fba097a5f5af7833eaf4355667dbfacaec43.zip |
Make cli_struct a talloc parent
(This used to be commit e69244a5c8c7c6b7c1897adc4b4b1cfdfc7a7999)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index ccd1cc67d5..592f050e90 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -537,7 +537,7 @@ struct cli_state *cli_initialise(void) return NULL; } - cli = SMB_MALLOC_P(struct cli_state); + cli = talloc(NULL, struct cli_state); if (!cli) { return NULL; } @@ -695,7 +695,7 @@ void cli_shutdown(struct cli_state *cli) cli->fd = -1; cli->smb_rw_error = SMB_READ_OK; - SAFE_FREE(cli); + TALLOC_FREE(cli); } /**************************************************************************** |