aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/include/gc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/include/gc.h b/system/include/gc.h
index baeaf2b5..996bc9ec 100644
--- a/system/include/gc.h
+++ b/system/include/gc.h
@@ -13,6 +13,8 @@ void __attribute__((used)) __GC_KEEPALIVE__() {
static int times = 1;
void *x = malloc(times);
free(x);
+ x = calloc(1, times);
+ free(x);
x = calloc(times, 1);
free(x);
times++;