Skip to content
Snippets Groups Projects
Commit e59aac33 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*stray fixes for the segfault during free when using maximum number of arguments.

parent e00c1133
No related branches found
No related tags found
No related merge requests found
...@@ -164,8 +164,8 @@ expr_ff(t_expr *x) ...@@ -164,8 +164,8 @@ expr_ff(t_expr *x)
y = x->exp_proxy; y = x->exp_proxy;
} }
for (i = 0 ; i < x->exp_nexpr; i++); for (i = 0 ; i < x->exp_nexpr; i++);
if (x->exp_stack[i]) if (x->exp_stack[i-1])
fts_free(x->exp_stack[i]); fts_free(x->exp_stack[i-1]);
/* /*
* SDY free all the allocated buffers here for expr~ and fexpr~ * SDY free all the allocated buffers here for expr~ and fexpr~
* check to see if there are others * check to see if there are others
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment