From e59aac3340c03fea727cc1e31036bafd0a5f74a6 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Wed, 5 Mar 2014 14:20:04 -0500
Subject: [PATCH] *stray fixes for the segfault during free when using maximum
 number of arguments.

---
 pd/extra/expr~/vexp_if.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/extra/expr~/vexp_if.c b/pd/extra/expr~/vexp_if.c
index 91f47ba22..a3499f456 100644
--- a/pd/extra/expr~/vexp_if.c
+++ b/pd/extra/expr~/vexp_if.c
@@ -164,8 +164,8 @@ expr_ff(t_expr *x)
                 y = x->exp_proxy;
         }
         for (i = 0 ; i < x->exp_nexpr; i++);
-                if (x->exp_stack[i])
-                        fts_free(x->exp_stack[i]);
+                if (x->exp_stack[i-1])
+                        fts_free(x->exp_stack[i-1]);
 /*
  * SDY free all the allocated buffers here for expr~ and fexpr~
  * check to see if there are others
-- 
GitLab