s4:messaging: allow imessaging_post_handler() to free the messaging context from...
authorStefan Metzmacher <metze@samba.org>
Sat, 19 May 2018 08:14:25 +0000 (10:14 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 11 Jul 2018 21:04:24 +0000 (23:04 +0200)
commita08ab2940051ae47ce71149087a24d060227ef19
tree64288d380b85848edc60335a92fbb9075fcb3223
parent2b05f1098187e00166649c8ea7c63e6901b9d242
s4:messaging: allow imessaging_post_handler() to free the messaging context from a handler

In usecases like using messaging_client_init() with irpc processing we may
free the imessaging_context during the messaging handler.
imessaging_post_handler() is not yet really used, but it will change in
the next commits. imessaging_post_state is a child of imessaging_context
and might be implicitly free'ed before the explicit TALLOC_FREE(state).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/lib/messaging/messaging.c