diff options
Diffstat (limited to 'cli/src/cli-cmd.h')
-rw-r--r-- | cli/src/cli-cmd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/src/cli-cmd.h b/cli/src/cli-cmd.h index 82e0ff113..ba877e2c4 100644 --- a/cli/src/cli-cmd.h +++ b/cli/src/cli-cmd.h @@ -30,6 +30,19 @@ #include "cli.h" #include "list.h" +#define CLI_STACK_DESTROY(_frame) \ + do { \ + if (_frame) { \ + if (_frame->local) { \ + gf_log ("cli", GF_LOG_DEBUG, "frame->local " \ + "is not NULL (%p)", _frame->local); \ + cli_local_wipe (_frame->local); \ + _frame->local = NULL; \ + } \ + STACK_DESTROY (_frame->root); \ + } \ + } while (0); + typedef enum { GF_ANSWER_YES = 1, GF_ANSWER_NO = 2 |