static BOOL find_master=False;
static BOOL lookup_by_ip = False;
poptContext pc;
+ TALLOC_CTX *frame = talloc_stackframe();
struct poptOption long_options[] = {
POPT_AUTOHELP
}
poptFreeContext(pc);
-
+ TALLOC_FREE(frame);
return(0);
}
static BOOL pw_from_stdin = False;
struct pdb_methods *bin, *bout, *bdef;
char *configfile = NULL;
+ TALLOC_CTX *frame = talloc_stackframe();
poptContext pc;
struct poptOption long_options[] = {
POPT_AUTOHELP
/* we shouldn't have silly checks like this */
if (getuid() != 0) {
d_fprintf(stderr, "You must be root to use pdbedit\n");
+ TALLOC_FREE(frame);
return -1;
}
}
poptPrintHelp(pc, stderr, 0);
+ TALLOC_FREE(frame);
return 1;
}
{ NULL }
};
- if ( !(ctx = talloc_init("main")) ) {
+ if ( !(ctx = talloc_stackframe()) ) {
fprintf( stderr, "Failed to initialize talloc context!\n");
return -1;
}
load_case_tables();
- ctx=talloc_init("main");
+ ctx=talloc_stackframe();
/* set default debug level to 1 regardless of what smb.conf sets */
setup_logging( "smbcacls", True );
struct cli_state *cli;
BOOL fix_user = False;
SMB_NTQUOTA_STRUCT qt;
+ TALLOC_CTX *frame = talloc_stackframe();
poptContext pc;
struct poptOption long_options[] = {
POPT_AUTOHELP
break;
}
+ talloc_free(frame);
+
return result;
}
{
char *desthost;
pstring configfile;
+ TALLOC_CTX *frame = talloc_stackframe();
setup_logging(argv[0],True);
}
start_filter(desthost);
+ TALLOC_FREE(frame);
return 0;
}
int c = 0;
const char *file = NULL;
char *rcfile = NULL;
+ TALLOC_CTX *frame = talloc_stackframe();
struct poptOption long_options[] = {
{"guest", 'a', POPT_ARG_NONE, NULL, 'a', "Work as user guest" },
{"resume", 'r', POPT_ARG_NONE, &_resume, 0, "Automatically resume aborted files" },
}
clean_exit();
-
+ TALLOC_FREE(frame);
return 0;
}
**********************************************************/
int main(int argc, char **argv)
{
+ TALLOC_CTX *frame = talloc_stackframe();
int local_flags = 0;
+ int ret;
AllowDebugChange = False;
return process_root(local_flags);
}
- return process_nonroot(local_flags);
+ ret = process_nonroot(local_flags);
+ TALLOC_FREE(frame);
+ return ret;
}
****************************************************************************/
int main(int argc,char *argv[])
{
+ TALLOC_CTX *frame = talloc_stackframe();
struct poptOption long_options[] = {
POPT_AUTOHELP
{ "broadcast", 'b', POPT_ARG_VAL, &use_bcast, True, "Use broadcast instead of using the master browser" },
/* Now do our stuff */
- if (!print_tree(&cmdline_auth_info))
+ if (!print_tree(&cmdline_auth_info)) {
+ TALLOC_FREE(frame);
return 1;
+ }
+ TALLOC_FREE(frame);
return 0;
}