1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

messaging3: Use "goto fail_nomem" where appropriate

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2014-06-10 14:57:05 +00:00 committed by Jeremy Allison
parent 4f4631831a
commit b84ea45fbd

View File

@ -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(),