ctdb-locking: Avoid memory leak
authorAmitay Isaacs <amitay@gmail.com>
Tue, 11 Mar 2014 07:56:22 +0000 (18:56 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 28 Mar 2014 02:30:09 +0000 (03:30 +0100)
commitff1c85ae279a87d9ce23955b02a68814f1f846f1
treeef2c219f40f0f0b5d933e56bff252b258f41d2a6
parent2e2137f56de2c763b874562868d9879d2ae24fee
ctdb-locking: Avoid memory leak

If lock_request could not be allocated, free lock_ctx since there can
only be a single lock_request per lock_ctx.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/server/ctdb_lock.c