diff --git a/src/t_grammar.c b/src/t_grammar.c index 0287b2fe6eda00a1d6575e619161d18ca9f20639..65812ea7dbd346f0833183a6d51b13c923126ad5 100644 --- a/src/t_grammar.c +++ b/src/t_grammar.c @@ -12,6 +12,8 @@ static void test_end(void) { g_check_hashtable_size(g->geneps, 0); g_check_derives_epsilon_not(g, p); + + h_cfgrammar_free(g); } static void test_example_1(void) { @@ -35,6 +37,8 @@ static void test_example_1(void) { g_check_followset_absent(1, g, c, "$"); g_check_followset_absent(1, g, c, "x"); g_check_followset_present(1, g, c, "y"); + + h_cfgrammar_free(g); } void register_grammar_tests(void) {