shithub: mc

Download patch

ref: 17b6a133ca281986b0dfb9a1ced306e4fc99eb92
parent: a434ff7d4dfa4121e1070bbba0754bbbd04630c4
author: Ori Bernstein <[email protected]>
date: Wed Dec 27 17:00:48 EST 2017

Free retired threads.

--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -164,8 +164,13 @@
 		next = thr.next
 		thrfree(re, thr)
 	;;
+	for thr = re.freed; thr != Zthr; thr = next
+		next = thr.next
+		thrfree(re, thr)
+	;;
 	re.runq = Zthr
 	re.expired = Zthr
+	re.freed = Zthr
 	re.nexttid = 0
 	re.nthr = 0
 }