1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Use talloc_stackframe() for temporary contexts throughout libnet_conf.c

Michael
(This used to be commit 4d734106b7)
This commit is contained in:
Michael Adam 2008-01-21 15:28:04 +01:00
parent 188bfbc192
commit 7f2e253efb

View File

@ -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;