aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-15 16:01:35 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-15 16:01:35 -0700
commit499ace020e95c574255dc9aa3604db441d54702c (patch)
tree3334d4a3cf31d9c439094aacd284220ecaccb22a /system
parent8331c32384e33fc865d03acab630759527304451 (diff)
fix test_gc for o1 and o2
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++;