mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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>
This commit is contained in:
parent
8ed0cacaf4
commit
f951ff1383
@ -977,7 +977,7 @@ int32_t ctdb_run_eventscripts(struct ctdb_context *ctdb,
|
||||
DEBUG(DEBUG_NOTICE,("Running eventscripts with arguments %s\n", indata.dptr));
|
||||
|
||||
ret = ctdb_event_script_callback(ctdb,
|
||||
state, run_eventscripts_callback, state,
|
||||
ctdb, run_eventscripts_callback, state,
|
||||
call, "%s", options);
|
||||
|
||||
if (ret != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user