ctdb: Use provided mem_ctx for newly allocated memory
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 21 Feb 2018 12:34:28 +0000 (13:34 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 30 Mar 2018 22:07:18 +0000 (00:07 +0200)
commitd6a9dc6e249fc1785a3b6e00bdee555f439b5d24
tree0134ae6fb464be103ab075c412097314c2e18041
parentaba3d508028567ccbfe8ea986d8f2b3f48af6215
ctdb: Use provided mem_ctx for newly allocated memory

ctdb_call_local is called with a mem_ctx parameter which should be used
for newly allocated memory.

This is safe because all allocations of this context are freed before
this function returns.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
ctdb/client/ctdb_client.c