Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

free symbol table from mrb_close()

  • Loading branch information...
commit ac789ae61ca86607833fa7e63776e8c0274aa91a 1 parent fb8247a
@matz matz authored
Showing with 4 additions and 1 deletion.
  1. +3 −0  src/state.c
  2. +1 −1  src/symbol.c
View
3  src/state.c
@@ -50,6 +50,8 @@ mrb_open()
return mrb;
}
+void mrb_free_symtbl(mrb_state *mrb);
+
void
mrb_close(mrb_state *mrb)
{
@@ -69,6 +71,7 @@ mrb_close(mrb_state *mrb)
mrb_free(mrb, mrb->irep[i]);
}
mrb_free(mrb, mrb->irep);
+ mrb_free_symtbl(mrb);
mrb_free(mrb, mrb);
}
View
2  src/symbol.c
@@ -94,7 +94,7 @@ mrb_sym2name_len(mrb_state *mrb, mrb_sym sym, int *lenp)
}
void
-mrb_free_symtbls(mrb_state *mrb)
+mrb_free_symtbl(mrb_state *mrb)
{
khash_t(n2s) *h = mrb->name2sym;
khiter_t k;
Please sign in to comment.
Something went wrong with that request. Please try again.