diff options
-rw-r--r-- | src/cli_new.c | 3 | ||||
-rw-r--r-- | src/cli_parse.y | 2 | ||||
-rw-r--r-- | src/cli_val.h | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index c0fb845..630bf9f 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -1340,6 +1340,9 @@ void free_def(vtw_def *defp) free_node_tree(defp->actions[act].vtw_list_head); if (defp->def_type_help) my_free(defp->def_type_help); + if (defp->def_node_help) { + my_free(defp->def_node_help); + } if (defp->def_default) my_free(defp->def_default); } diff --git a/src/cli_parse.y b/src/cli_parse.y index f0e43a8..372f3a9 100644 --- a/src/cli_parse.y +++ b/src/cli_parse.y @@ -103,7 +103,7 @@ cause: help_cause ; help_cause: HELP STRING - { parse_defp->def_type_help = $2; /* no semantics for now */ + { parse_defp->def_node_help = $2; /* no semantics for now */ } default_cause: DEFAULT VALUE diff --git a/src/cli_val.h b/src/cli_val.h index e147d4c..fec8054 100644 --- a/src/cli_val.h +++ b/src/cli_val.h @@ -99,6 +99,7 @@ typedef enum { typedef struct { vtw_type_e def_type; char *def_type_help; + char *def_node_help; char *def_default; boolean tag; boolean multi; |