fix error in parser destructor
This commit is contained in:
parent
681fbe42d2
commit
de56d9a7ea
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
||||||
/* A Bison parser, made by GNU Bison 3.0.2. */
|
/* A Bison parser, made by GNU Bison 3.0.4. */
|
||||||
|
|
||||||
/* Bison interface for Yacc-like parsers in C
|
/* Bison interface for Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
|
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -206,7 +206,7 @@ extern int hsql_debug;
|
||||||
|
|
||||||
/* Value type. */
|
/* Value type. */
|
||||||
#if ! defined HSQL_STYPE && ! defined HSQL_STYPE_IS_DECLARED
|
#if ! defined HSQL_STYPE && ! defined HSQL_STYPE_IS_DECLARED
|
||||||
typedef union HSQL_STYPE HSQL_STYPE;
|
|
||||||
union HSQL_STYPE
|
union HSQL_STYPE
|
||||||
{
|
{
|
||||||
#line 100 "bison_parser.y" /* yacc.c:1909 */
|
#line 100 "bison_parser.y" /* yacc.c:1909 */
|
||||||
|
@ -247,6 +247,8 @@ union HSQL_STYPE
|
||||||
|
|
||||||
#line 249 "bison_parser.h" /* yacc.c:1909 */
|
#line 249 "bison_parser.h" /* yacc.c:1909 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef union HSQL_STYPE HSQL_STYPE;
|
||||||
# define HSQL_STYPE_IS_TRIVIAL 1
|
# define HSQL_STYPE_IS_TRIVIAL 1
|
||||||
# define HSQL_STYPE_IS_DECLARED 1
|
# define HSQL_STYPE_IS_DECLARED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -140,8 +140,10 @@ int yyerror(YYLTYPE* llocp, SQLParserResult** result, yyscan_t scanner, const ch
|
||||||
%destructor { } <fval> <ival> <uval> <bval> <order_type>
|
%destructor { } <fval> <ival> <uval> <bval> <order_type>
|
||||||
%destructor { free( ($$) ); } <sval>
|
%destructor { free( ($$) ); } <sval>
|
||||||
%destructor {
|
%destructor {
|
||||||
for (auto ptr : *($$)) {
|
if (($$) != NULL) {
|
||||||
delete ptr;
|
for (auto ptr : *($$)) {
|
||||||
|
delete ptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
delete ($$);
|
delete ($$);
|
||||||
} <str_vec> <table_vec> <column_vec> <update_vec> <expr_vec>
|
} <str_vec> <table_vec> <column_vec> <update_vec> <expr_vec>
|
||||||
|
|
Loading…
Reference in New Issue