* src/vmcore/linker.c (build_display_inner): Use MNEW instead of malloc.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Mon, 20 Oct 2008 12:35:17 +0000 (14:35 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Mon, 20 Oct 2008 12:35:17 +0000 (14:35 +0200)
Fixes C++ build.

--HG--
branch : subtype

src/vmcore/linker.c

index 08589bfdb82ab32525d5fc3e3ad524fb0d5f190e..221440966331bd00aa300cd89eb3cee286649ef1 100644 (file)
@@ -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);