summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-28 14:03:38 +0100
committerVolker Lendecke <vl@samba.org>2008-02-28 14:20:17 +0100
commit57a9fba097a5f5af7833eaf4355667dbfacaec43 (patch)
treed77ebd135dee8b4691d97019b7addd109fe509e9 /source3/libsmb/clientgen.c
parent4d55efe4ab2fed0205d5ce7ffa111b89e0d04c73 (diff)
downloadsamba-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/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c4
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);
}
/****************************************************************************