diff options
-rw-r--r-- | typd_mlc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |