summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 8a49a6a2..f3789ca3 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -721,7 +721,8 @@ GC_API GC_ATTR_MALLOC void * GC_CALL GC_calloc_explicitly_typed(size_t n,
&complex_descr, &leaf);
lb *= n;
switch(descr_type) {
- case NO_MEM: return(0);
+ case NO_MEM:
+ return (*GC_get_oom_fn())(lb);
case SIMPLE:
return GC_malloc_explicitly_typed(lb, simple_descr);
case LEAF: