summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-16 18:36:31 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-16 18:36:31 -0500
commit5608cdaf56ac1e842f6bae691d22ca6800e5b363 (patch)
treea1821587c69469bc5eea458b5e3fb013a89cd331
parentac2b69008a453fb8da4116636da2587ceb03db63 (diff)
downloadmc-5608cdaf56ac1e842f6bae691d22ca6800e5b363.tar.gz
I should avoid having tests leak.
-rw-r--r--test/strsplit.myr3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/strsplit.myr b/test/strsplit.myr
index 7e40770..cf46549 100644
--- a/test/strsplit.myr
+++ b/test/strsplit.myr
@@ -8,14 +8,17 @@ const main = {
for i = 0; i < sp.len; i++
std.put("\"%s\"\n", sp[i])
;;
+ std.slfree(sp)
sp = std.strsplit("a,,b,c,,d", ",")
for i = 0; i < sp.len; i++
std.put("\"%s\"\n", sp[i])
;;
+ std.slfree(sp)
sp = std.strsplit("a--b---b--c---c-d--d", "---")
for i = 0; i < sp.len; i++
std.put("\"%s\"\n", sp[i])
;;
+ std.slfree(sp)
}