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
This commit is contained in:
Mitchell Blank Jr
2012-05-22 01:03:54 -07:00
parent 8c084b9645
commit d1cd10421f
5 changed files with 8 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@ main(void)
else {
/* no */
}
mrb_close(mrb);
return 0;
}