summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-21 15:28:04 +0100
committerMichael Adam <obnox@samba.org>2008-01-21 22:49:45 +0100
commit7f2e253efbf5ce9a7195efcd5fee778b219faebb (patch)
tree2852e69a0c918c328a71aeefad8d4b1e91007a51 /source3
parent188bfbc19230c5451059375cb648d06362ac9395 (diff)
downloadsamba-7f2e253efbf5ce9a7195efcd5fee778b219faebb.tar.gz
samba-7f2e253efbf5ce9a7195efcd5fee778b219faebb.tar.bz2
samba-7f2e253efbf5ce9a7195efcd5fee778b219faebb.zip
Use talloc_stackframe() for temporary contexts throughout libnet_conf.c
Michael (This used to be commit 4d734106b70b9b6029b537fe11f8b3c1aebd42cf)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index 152148300e..ec05fa7c16 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -195,7 +195,7 @@ static WERROR libnet_conf_reg_create_service_key(TALLOC_CTX *mem_ctx,
/* create a new talloc ctx for creation. it will hold
* the intermediate parent key (SMBCONF) for creation
* and will be destroyed when leaving this function... */
- if (!(create_ctx = talloc_new(mem_ctx))) {
+ if (!(create_ctx = talloc_stackframe())) {
werr = WERR_NOMEM;
goto done;
}
@@ -361,7 +361,7 @@ static WERROR libnet_conf_reg_get_values(TALLOC_CTX *mem_ctx,
goto done;
}
- tmp_ctx = talloc_new(mem_ctx);
+ tmp_ctx = talloc_stackframe();
if (tmp_ctx == NULL) {
werr = WERR_NOMEM;
goto done;
@@ -544,7 +544,7 @@ WERROR libnet_conf_get_config(TALLOC_CTX *mem_ctx,
goto done;
}
- tmp_ctx = talloc_new(mem_ctx);
+ tmp_ctx = talloc_stackframe();
if (tmp_ctx == NULL) {
werr = WERR_NOMEM;
goto done;
@@ -619,7 +619,7 @@ WERROR libnet_conf_get_share_names(TALLOC_CTX *mem_ctx,
goto done;
}
- tmp_ctx = talloc_new(mem_ctx);
+ tmp_ctx = talloc_stackframe();
if (tmp_ctx == NULL) {
werr = WERR_NOMEM;
goto done;