summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-02 02:37:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-02 02:37:46 +0000
commita4b94c4443953b61ecdbb764e4a544c0e7208c7e (patch)
treeb2aa964a09515ca4684cc2b4db90dbbf5f1b51a6 /gc.c
parentcb3c0b4a10d662075beed8afd1182be519b0ed62 (diff)
* gc.c (obj_free): fix to free method table (fix memory leak).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 9a183a5d41..dc8916b885 100644
--- a/gc.c
+++ b/gc.c
@@ -1428,6 +1428,7 @@ static void
free_m_table(st_table *tbl)
{
st_foreach(tbl, free_method_entry_i, 0);
+ st_free_table(tbl);
}
void