diff options
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r-- | ctdb/server/eventscript.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index 9711ebaabe..7ad66c6c6d 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -689,7 +689,6 @@ static void ctdb_event_script_timeout(struct event_context *ev, struct timed_eve options = talloc_strdup(ctdb, state->options); CTDB_NO_MEMORY_VOID(ctdb, options); - talloc_free(state); if (!strcmp(options, "monitor")) { /* if it is a monitor event, we allow it to "hang" a few times before we declare it a failure and ban ourself (and make @@ -752,6 +751,7 @@ static void ctdb_event_script_timeout(struct event_context *ev, struct timed_eve ctdb->script_monitor_ctx = NULL; } + talloc_free(state); talloc_free(options); } |