From d1cd10421f8bfeee791ea7ecd1674eccd00000ae Mon Sep 17 00:00:00 2001 From: Mitchell Blank Jr Date: Tue, 22 May 2012 01:03:54 -0700 Subject: 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 --- tools/mirb/mirb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/mirb') diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index a5285df0f..459923768 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -227,6 +227,7 @@ main(void) } } } + mrb_close(mrb_interpreter); return 0; } -- cgit v1.2.3