Better malloc_trim define name

This commit is contained in:
Rory OConnell
2020-09-01 16:13:52 -07:00
committed by Yukihiro "Matz" Matsumoto
parent 2b05cf48d0
commit fff0f17b49
+2 -2
View File
@@ -6,7 +6,7 @@
#include <string.h>
#include <stdlib.h>
#ifdef HAS_MALLOC_TRIM
#ifdef MRB_USE_MALLOC_TRIM
#include <malloc.h>
#endif
#include <mruby.h>
@@ -1322,7 +1322,7 @@ mrb_full_gc(mrb_state *mrb)
gc->full = FALSE;
}
#ifdef HAS_MALLOC_TRIM
#ifdef MRB_USE_MALLOC_TRIM
malloc_trim(0);
#endif
GC_TIME_STOP_AND_REPORT;