We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nested_scan
1 parent 2d83194 commit 8d749f9Copy full SHA for 8d749f9
src/scanner.c
@@ -1982,7 +1982,8 @@
1982
// Exiting PlusCal block; rehydrate context then pop
1983
CharArray* next = array_back(&this->enclosing_contexts);
1984
scanner_deserialize(&this->current_context, next->contents, next->size);
1985
- array_delete(&array_pop(&this->enclosing_contexts));
+ CharArray ctx = array_pop(&this->enclosing_contexts);
1986
+ array_delete(&ctx);
1987
lexer->result_symbol = PCAL_END;
1988
return true;
1989
} else {
0 commit comments