Commit
50c2caed57c0 removed a gratuitous talloc_steal from the code in
ctdb_control_event_script_finished(), but not ctdb_event_script_timeout().
Easiest to call ctdb_control_event_script_finished() at the bottom of the
timeout routine.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
script->timedout = 1;
}
- if (ctdb->last_monitor_status_ctx) {
- talloc_free(ctdb->last_monitor_status_ctx);
- ctdb->last_monitor_status_ctx = NULL;
- }
- ctdb->last_monitor_status_ctx = talloc_steal(ctdb, ctdb->current_monitor_status_ctx);
- ctdb->current_monitor_status_ctx = NULL;
+ ctdb_control_event_script_finished(ctdb);
}
talloc_free(state);