ctdb-locking: Avoid resetting talloc destructor
authorAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jun 2015 01:25:44 +0000 (11:25 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 12 Jun 2015 10:40:54 +0000 (12:40 +0200)
commitbc747030d435447e62262541cf2e74be4c4229d8
tree0d6e52d09967a8d52a2f8f00a8370c4de32d159f
parent2b352ff20597b9e34b3777d35deca1bf56209f8a
ctdb-locking: Avoid resetting talloc destructor

Let ctdb_lock_request_destructor() take care of the proper cleanup.
If the request if freed from the callback function, then the lock context
should not be freed.  Setting request->lctx to NULL takes care of that
in the destructor.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11293

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
ctdb/server/ctdb_lock.c