Blame SOURCES/expect-5.45-re-memleak.patch

0106b4
diff -up expect5.45/expect.c.orig expect5.45/expect.c
0106b4
--- expect5.45/expect.c.orig	2013-10-02 13:16:31.462430482 +0200
0106b4
+++ expect5.45/expect.c	2013-10-02 13:17:18.420599495 +0200
0106b4
@@ -185,9 +185,9 @@ free_ecase(
0106b4
 {
0106b4
     if (ec->i_list->duration == EXP_PERMANENT) {
0106b4
 	if (ec->pat)  { Tcl_DecrRefCount(ec->pat); }
0106b4
-	if (ec->gate) { Tcl_DecrRefCount(ec->gate); }
0106b4
 	if (ec->body) { Tcl_DecrRefCount(ec->body); }
0106b4
     }
0106b4
+    if (ec->gate) { Tcl_DecrRefCount(ec->gate); }
0106b4
 
0106b4
     if (free_ilist) {
0106b4
 	ec->i_list->ecount--;