diff options
author | Martin Schwenke <martin@meltin.net> | 2013-02-05 13:08:55 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-02-05 16:05:13 +1100 |
commit | f2428cadd8e724ef306c4cc08f191585aa07e9dc (patch) | |
tree | f857b56f1cf7d3ba5d07b8ed9e27e07d9412c638 /ctdb/server/eventscript.c | |
parent | a0c88ec816cb364717b16d01db03572c31b9cc1c (diff) | |
download | samba-f2428cadd8e724ef306c4cc08f191585aa07e9dc.tar.gz samba-f2428cadd8e724ef306c4cc08f191585aa07e9dc.tar.xz samba-f2428cadd8e724ef306c4cc08f191585aa07e9dc.zip |
ctdbd: Remove debug_hung_script_ctx
The only allocation against this context is by
ctdb_fork_with_logging(). This memory is freed by ctdb_log_handler()
anyway. There should be no memory leak.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 501461cc3e132d4adee9e91b5d4513a26bae2846)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r-- | ctdb/server/eventscript.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index 762f9506fa..20f16fa156 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -528,9 +528,7 @@ static void ctdb_run_debug_hung_script(struct ctdb_context *ctdb, struct ctdb_ev cmd, timeval_elapsed(¤t->start), state->child)); talloc_free(cmd); - talloc_free(ctdb->debug_hung_script_ctx); - ctdb->debug_hung_script_ctx = talloc_new(ctdb); - if (!ctdb_fork_with_logging(ctdb->debug_hung_script_ctx, ctdb, "Hung script", NULL, NULL, &pid)) { + if (!ctdb_fork_with_logging(ctdb, ctdb, "Hung script", NULL, NULL, &pid)) { DEBUG(DEBUG_ERR,("Failed to fork a child process with logging to track hung event script\n")); ctdb_kill(state->ctdb, state->child, SIGTERM); return; |