diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-08 23:31:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:48:49 +0100 |
commit | a48fdda5fec99649e29760c7a9c91246438c9579 (patch) | |
tree | c4e3014514c4f91ff356ca6e7069d288d0554ee1 /source4/client | |
parent | 47554fd72e00911f05c1c16f1af4d06481d32882 (diff) | |
download | samba-a48fdda5fec99649e29760c7a9c91246438c9579.tar.gz samba-a48fdda5fec99649e29760c7a9c91246438c9579.tar.bz2 samba-a48fdda5fec99649e29760c7a9c91246438c9579.zip |
r26339: Make loadparm talloc-allocated.
(This used to be commit 1e02cd8db1d65ff72b747833904a10b47749b1fb)
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/smbmount.c | 2 | ||||
-rw-r--r-- | source4/client/smbspool.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/client/smbmount.c b/source4/client/smbmount.c index 36271c9a2e..b32bcf5b68 100644 --- a/source4/client/smbmount.c +++ b/source4/client/smbmount.c @@ -897,7 +897,7 @@ static void parse_mount_smb(int argc, char **argv) pstrcpy(username,getenv("LOGNAME")); } - if (!lp_load(dyn_CONFIGFILE, &lp_ctx)) { + if (!lp_load(talloc_autofree_context(), dyn_CONFIGFILE, &lp_ctx)) { fprintf(stderr, "Can't load %s - run testparm to debug it\n", lp_config_file()); } diff --git a/source4/client/smbspool.c b/source4/client/smbspool.c index 6a7454b6b2..0951fb2bef 100644 --- a/source4/client/smbspool.c +++ b/source4/client/smbspool.c @@ -177,7 +177,7 @@ static int smb_print(struct smbcli_state *, char *, FILE *); setup_logging(argv[0], DEBUG_STDOUT); - if (!lp_load(dyn_CONFIGFILE, &lp_ctx)) { + if (!lp_load(talloc_autofree_context(), dyn_CONFIGFILE, &lp_ctx)) { fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", lp_config_file()); return (1); } |