mirror of
https://github.com/samba-team/samba.git
synced 2025-09-10 05:44:20 +03:00
r23960: Don't destory the 'reason' for terminating the service before printing it.
Andrew Bartlett
(This used to be commit 18d2680f35
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
0d80514173
commit
3c097f3afb
@@ -34,8 +34,10 @@ void task_server_terminate(struct task_server *task, const char *reason)
|
||||
struct event_context *event_ctx = task->event_ctx;
|
||||
const struct model_ops *model_ops = task->model_ops;
|
||||
DEBUG(0,("task_server_terminate: [%s]\n", reason));
|
||||
talloc_free(task);
|
||||
model_ops->terminate(event_ctx, reason);
|
||||
|
||||
/* don't free this above, it might contain the 'reason' being printed */
|
||||
talloc_free(task);
|
||||
}
|
||||
|
||||
/* used for the callback from the process model code */
|
||||
|
Reference in New Issue
Block a user