From 16df87f2f4f1c5b2a1045833de2c6ffb96e90156 Mon Sep 17 00:00:00 2001 From: Stefan Ring Date: Mon, 20 Oct 2008 14:35:17 +0200 Subject: [PATCH] * src/vmcore/linker.c (build_display_inner): Use MNEW instead of malloc. Fixes C++ build. --HG-- branch : subtype --- src/vmcore/linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmcore/linker.c b/src/vmcore/linker.c index 08589bfdb..221440966 100644 --- a/src/vmcore/linker.c +++ b/src/vmcore/linker.c @@ -577,7 +577,7 @@ static int build_display_inner(classinfo *topc, classinfo *c, int i) { if (depth == DISPLAY_SIZE) { - topc->vftbl->subtype_overflow = malloc(sizeof(void*) * (i+1)); + topc->vftbl->subtype_overflow = MNEW(vftbl_t *, i+1); #if defined(ENABLE_STATISTICS) if (opt_stat) count_vftbl_len += sizeof(void*) * (i+1); -- 2.25.1