aboutsummaryrefslogtreecommitdiffstats
path: root/main/ast_expr2f.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/ast_expr2f.c')
-rw-r--r--main/ast_expr2f.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/ast_expr2f.c b/main/ast_expr2f.c
index 57eb2dd5b..9f5e5cf4f 100644
--- a/main/ast_expr2f.c
+++ b/main/ast_expr2f.c
@@ -3963,7 +3963,8 @@ void *ast_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
void ast_yyfree (void * ptr , yyscan_t yyscanner)
{
- free( (char *) ptr ); /* see ast_yyrealloc() for (char *) cast */
+ if (ptr)
+ free( (char *) ptr ); /* see ast_yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"