git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0d1db9
)
Make cli_struct a talloc parent
author
Volker Lendecke
<vl@samba.org>
Thu, 28 Feb 2008 13:03:38 +0000
(14:03 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 28 Feb 2008 13:20:17 +0000
(14:20 +0100)
source/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source/libsmb/clientgen.c
b/source/libsmb/clientgen.c
index ccd1cc67d527b5f9a33c24eb0569e7fa7c3107c8..592f050e90b854eeeda9ff7649d4c9511a05958a 100644
(file)
--- a/
source/libsmb/clientgen.c
+++ b/
source/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);
}
/****************************************************************************