Skip to content

Commit aa413a2

Browse files
committed
check added
1 parent 425999e commit aa413a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8229,6 +8229,8 @@ struct balanced_token_sequence* _Owner _Opt balanced_token_sequence_opt(struct p
82298229
if(ctx->current->type != TK_COMMA)
82308230
{
82318231
struct balanced_token* new_token = calloc(1, sizeof(struct balanced_token));
8232+
if (new_token == NULL) throw;
8233+
82328234
new_token->token = ctx->current;
82338235
if(p_balanced_token_sequence->tail == NULL)
82348236
{

0 commit comments

Comments
 (0)