Lines Matching refs:tmp_ctx

51 	TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);  in samba3sid_next_sid()
52 if (!tmp_ctx) { in samba3sid_next_sid()
56 rootdse_dn = ldb_dn_new(tmp_ctx, ldb, "@ROOTDSE"); in samba3sid_next_sid()
58 talloc_free(tmp_ctx); in samba3sid_next_sid()
62 ret = dsdb_module_search_dn(module, tmp_ctx, &rootdse_res, rootdse_dn, in samba3sid_next_sid()
65 talloc_free(tmp_ctx); in samba3sid_next_sid()
72 talloc_free(tmp_ctx); in samba3sid_next_sid()
88 TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
89 if (!tmp_ctx) {
108 char **b = str_list_make_single(tmp_ctx, backend_mod);
111 char **b = str_list_make_empty(tmp_ctx);
115 talloc_free(tmp_ctx);
121 talloc_free(tmp_ctx);
125 mod_list_string = str_list_join(tmp_ctx, backend_full_list, ',');
131 talloc_free(tmp_ctx);
135 full_string = talloc_asprintf(tmp_ctx, "%s:%s", backend_dn, mod_list_string);
137 talloc_free(tmp_ctx);
163 TALLOC_CTX *tmp_ctx = talloc_new(module);
247 if (!tmp_ctx) {
253 talloc_free(tmp_ctx);
257 samba_dsdb_dn = ldb_dn_new(tmp_ctx, ldb, "@SAMBA_DSDB");
259 talloc_free(tmp_ctx);
263 indexlist_dn = ldb_dn_new(tmp_ctx, ldb, "@INDEXLIST");
265 talloc_free(tmp_ctx);
269 partition_dn = ldb_dn_new(tmp_ctx, ldb, DSDB_PARTITION_DN);
271 talloc_free(tmp_ctx);
278 talloc_free(tmp_ctx); \
283 ret = dsdb_module_search_dn(module, tmp_ctx, &res, samba_dsdb_dn,
310 ret = dsdb_module_search_dn(module, tmp_ctx, &res,
399 talloc_free(tmp_ctx);
410 talloc_free(tmp_ctx); \
415 final_module_list = str_list_copy_const(tmp_ctx, modules_list1);
434 ret = read_at_rootdse_record(ldb, module, tmp_ctx, &rootdse_msg, NULL);
437 partition_msg = ldb_msg_new(tmp_ctx);
440 ret = prepare_modules_line(ldb, tmp_ctx,
446 ret = prepare_modules_line(ldb, tmp_ctx,
461 reverse_module_list = talloc_array(tmp_ctx, const char *, len+1);
463 talloc_free(tmp_ctx);
478 talloc_free(tmp_ctx);