diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-07-27 04:17:51 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-07-27 04:17:51 +0000 |
| commit | 5a5d576b346b03888636bcb0af31efb8a1e43cc2 (patch) | |
| tree | bfeb3996db5c654845d21be484d88f1bd95b7eda /lib/grammar_sandbox.c | |
| parent | eceb106640e0279ed89e476c25f37f3b2da860fc (diff) | |
lib: Cleanup parser memory management
Free as appropriate. Additionally add new type
of node to demark graph head (START_GN).
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/grammar_sandbox.c')
| -rw-r--r-- | lib/grammar_sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c index 6eee9c8b65..f78ba060a6 100644 --- a/lib/grammar_sandbox.c +++ b/lib/grammar_sandbox.c @@ -101,7 +101,7 @@ DEFUN (grammar_test_match, void grammar_sandbox_init(void); void grammar_sandbox_init() { fprintf(stderr, "reinitializing graph\n"); - nodegraph = new_node(NUL_GN); + nodegraph = new_node(START_GN); install_element (ENABLE_NODE, &grammar_test_cmd); install_element (ENABLE_NODE, &grammar_test_show_cmd); install_element (ENABLE_NODE, &grammar_test_match_cmd); |
