private_data, struct server_state);
DEBUG(10,("Process %s got SIGTERM\n", state->binary_name));
+ TALLOC_FREE(state);
sig_term(SIGTERM);
}
kill(-getpgrp(), SIGTERM);
}
#endif
+ TALLOC_FREE(state);
exit(0);
}
}
(int)getpid(),
(unsigned long long)t.tv_sec,
(unsigned long long)time(NULL)));
+ TALLOC_FREE(state);
exit(0);
}
struct server_state);
DBG_ERR("samba_terminate of %s %d: %s\n",
state->binary_name, (int)getpid(), r->in.reason);
+ TALLOC_FREE(state);
exit(1);
}
struct imessaging_context *msg;
NTSTATUS status;
- msg = imessaging_init(talloc_autofree_context(),
+ msg = imessaging_init(state->event_ctx,
lp_ctx,
cluster_id(0, SAMBA_PARENT_TASKID),
state->event_ctx);
/* the event context is the top level structure in smbd. Everything else
should hang off that */
- state->event_ctx = s4_event_context_init(talloc_autofree_context());
+ state->event_ctx = s4_event_context_init(state);
if (state->event_ctx == NULL) {
exit_daemon("Initializing event context failed", EACCES);