diff options
Diffstat (limited to 'source3/lib')
| -rw-r--r-- | source3/lib/messages_dgm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c index 4bbf89cff6..2f30503ecd 100644 --- a/source3/lib/messages_dgm.c +++ b/source3/lib/messages_dgm.c @@ -230,16 +230,14 @@ NTSTATUS messaging_dgm_init(struct messaging_context *msg_ctx, ctx->msg_callbacks = poll_funcs_init_tevent(ctx); if (ctx->msg_callbacks == NULL) { - TALLOC_FREE(result); - return NT_STATUS_NO_MEMORY; + goto fail_nomem; } ctx->tevent_handle = poll_funcs_tevent_register( ctx, ctx->msg_callbacks, messaging_tevent_context(msg_ctx)); if (ctx->tevent_handle == NULL) { - TALLOC_FREE(result); - return NT_STATUS_NO_MEMORY; + goto fail_nomem; } ok = directory_create_or_exist_strict(socket_dir, sec_initial_uid(), |
