locking: Avoid resetting talloc destructor
authorAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jun 2015 01:25:44 +0000 (11:25 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 15 Jun 2015 02:13:01 +0000 (12:13 +1000)
commit84905282afa56a08c273b7fe76b8fd00917ac1ea
tree697ce79fb71f1940995f4fc448567e37d948473e
parent938a6cae2fc8eb40716584e2998cab0b838786ab
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>
(Imported from commit bc747030d435447e62262541cf2e74be4c4229d8)
server/ctdb_lock.c