diff --git a/parse.y b/parse.y index 3d4d3b5..5f7df85 100644 --- a/parse.y +++ b/parse.y @@ -833,6 +833,7 @@ table_lookup_or_create(const char *table_name) if (strlcpy(table->pft_name, table_name, sizeof(table->pft_name)) >= sizeof(table->pft_name)) { yyerror("table name is too long"); + free(table); return (NULL); }