ctdb-daemon: Avoid double-free during monitor cancellation
authorAmitay Isaacs <amitay@gmail.com>
Fri, 10 Jul 2015 04:02:29 +0000 (14:02 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 14 Jul 2015 07:57:17 +0000 (09:57 +0200)
commitf951ff13838e796cd6661d800daf460247cac60b
treee988d07d1a39193c48e183f2f99a31a1606989a4
parent8ed0cacaf4aa9fc63b8c8d610a6164c5d01e473a
ctdb-daemon: Avoid double-free during monitor cancellation

The eventscript state should never be freed externally, so it should
never be allocated off a temporary context.  It will either be freed
by the handler or in the cancellation code.

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