summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-28 10:18:45 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-28 10:18:45 -0800
commit804ca7d4abe311fb94e02c8e1cd56aad8865a959 (patch)
tree2cb0800e5604a3971fbaa7b5af663f1247974fab
parentc191c8825c094e3563094104b80df47c735c95fa (diff)
downloadmc-804ca7d4abe311fb94e02c8e1cd56aad8865a959.tar.gz
Let's be freeing the threads.
-rw-r--r--lib/regex/interp.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/regex/interp.myr b/lib/regex/interp.myr
index c91b14f..87528a2 100644
--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -159,15 +159,15 @@ const cleanup = {re
for thr = re.runq; thr != Zthr; thr = next
next = thr.next
- thrfree(re, thr)
+ std.free(thr)
;;
for thr = re.expired; thr != Zthr; thr = next
next = thr.next
- thrfree(re, thr)
+ std.free(thr)
;;
for thr = re.free; thr != Zthr; thr = next
next = thr.next
- thrfree(re, thr)
+ std.free(thr)
;;
re.runq = Zthr
re.expired = Zthr