summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMitchell Blank Jr <[email protected]>2012-05-22 01:03:54 -0700
committerMitchell Blank Jr <[email protected]>2012-05-22 01:03:54 -0700
commitd1cd10421f8bfeee791ea7ecd1674eccd00000ae (patch)
treeb0a5df7a59f0a3ca8452c7cef5c88fe2f6cad8f7 /test
parent8c084b9645ddc376403aa6c32a3e703ecc28d400 (diff)
downloadmruby-d1cd10421f8bfeee791ea7ecd1674eccd00000ae.tar.gz
mruby-d1cd10421f8bfeee791ea7ecd1674eccd00000ae.zip
change example code to do mrb_close()
I was hoping this would cause valgrind to complain less, but there is still a lot of memory leaked (does mrb_close() actually free all of the managed blocks?) Anyway this helps somewhat and is good practice
Diffstat (limited to 'test')
-rw-r--r--test/driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/driver.c b/test/driver.c
index afc93b10b..4651d75fc 100644
--- a/test/driver.c
+++ b/test/driver.c
@@ -55,6 +55,7 @@ main(void)
else {
/* no */
}
+ mrb_close(mrb);
return 0;
}