1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r24828: Give smbcontrol an initial talloc stackframe.

This commit is contained in:
Michael Adam 2007-08-31 10:06:37 +00:00 committed by Gerald (Jerry) Carter
parent dbe38995ec
commit 55020b07b5

View File

@ -1256,6 +1256,8 @@ int main(int argc, const char **argv)
POPT_COMMON_SAMBA
POPT_TABLEEND
};
TALLOC_CTX *frame = talloc_stackframe();
int ret = 0;
load_case_tables();
@ -1305,8 +1307,11 @@ int main(int argc, const char **argv)
if (!(evt_ctx = event_context_init(NULL)) ||
!(msg_ctx = messaging_init(NULL, server_id_self(), evt_ctx))) {
fprintf(stderr, "could not init messaging context\n");
TALLOC_FREE(frame);
exit(1);
}
return !do_command(msg_ctx, argc, argv);
ret = !do_command(msg_ctx, argc, argv);
TALLOC_FREE(frame);
return ret;
}