You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function ParseArrayInitializer first estimates the number of elements by calling itself again with DoAssignment=False. The problem in line 285. The ExpressionParser allocates the value on the stack.
The function ParseArrayInitializer first estimates the number of elements by calling itself again with DoAssignment=False. The problem in line 285. The ExpressionParser allocates the value on the stack.
picoc/parse.c
Line 285 in a97d94f
As DoAssignment is false line 288 is not true and the variable is never released anymore.
I think the following pop condition below shall be added.
if (Parser->Mode == RunModeRun && DoAssignment) { ExpressionAssign(Parser, ArrayElement, CValue, false, NULL, 0, false); VariableStackPop(Parser, CValue); VariableStackPop(Parser, ArrayElement); } else if(Parser->Mode == RunModeRun) { VariableStackPop(Parser, CValue); }
The text was updated successfully, but these errors were encountered: