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@gmail.com>
Thu, 16 Jul 2015 04:36:41 +0000 (14:36 +1000)
commit857d7ce8b371e1ea946757b1dad115b91345ebd4
tree4a47c03188ff824fe74bd7af7ae0480df8cf0fa5
parent2694ce9361252287848dd5bde8dfbafabd7a92f4
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>
(Imported from commit f951ff13838e796cd6661d800daf460247cac60b)
server/eventscript.c