mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix leaked function symbols
- `free_heap()` in src/gc.c - `symhash()` in src/symbol.c - `no_optimize()` in mrbgems/mruby-compiler/core/codegen.c
This commit is contained in:
@@ -273,8 +273,7 @@ genop_W(codegen_scope *s, mrb_code i, uint32_t a)
|
||||
#define NOVAL 0
|
||||
#define VAL 1
|
||||
|
||||
//static
|
||||
mrb_bool
|
||||
static mrb_bool
|
||||
no_optimize(codegen_scope *s)
|
||||
{
|
||||
if (s && s->parser && s->parser->no_optimize)
|
||||
|
||||
@@ -396,7 +396,7 @@ mrb_gc_init(mrb_state *mrb, mrb_gc *gc)
|
||||
|
||||
static void obj_free(mrb_state *mrb, struct RBasic *obj, int end);
|
||||
|
||||
void
|
||||
static void
|
||||
free_heap(mrb_state *mrb, mrb_gc *gc)
|
||||
{
|
||||
mrb_heap_page *page = gc->heaps;
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ sym_inline_unpack(mrb_sym sym, char *buf, mrb_int *lenp)
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t
|
||||
static uint8_t
|
||||
symhash(const char *key, size_t len)
|
||||
{
|
||||
uint32_t hash, i;
|
||||
|
||||
Reference in New Issue
Block a user