Revision 7267c094 hw/mips_fulong2e.c

b/hw/mips_fulong2e.c
140 140

  
141 141
    /* Setup prom parameters. */
142 142
    prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE);
143
    prom_buf = qemu_malloc(prom_size);
143
    prom_buf = g_malloc(prom_size);
144 144

  
145 145
    prom_set(prom_buf, index++, "%s", loaderparams.kernel_filename);
146 146
    if (initrd_size > 0) {
......
313 313
        if (filename) {
314 314
            bios_size = load_image_targphys(filename, 0x1fc00000LL,
315 315
                                            BIOS_SIZE);
316
            qemu_free(filename);
316
            g_free(filename);
317 317
        } else {
318 318
            bios_size = -1;
319 319
        }

Also available in: Unified diff