Revision 7267c094 hw/s390-virtio.c

b/hw/s390-virtio.c
165 165
    cpu_register_physical_memory(0, my_ram_size, ram_addr);
166 166

  
167 167
    /* allocate storage keys */
168
    storage_keys = qemu_mallocz(my_ram_size / TARGET_PAGE_SIZE);
168
    storage_keys = g_malloc0(my_ram_size / TARGET_PAGE_SIZE);
169 169

  
170 170
    /* init CPUs */
171 171
    if (cpu_model == NULL) {
172 172
        cpu_model = "host";
173 173
    }
174 174

  
175
    ipi_states = qemu_malloc(sizeof(CPUState *) * smp_cpus);
175
    ipi_states = g_malloc(sizeof(CPUState *) * smp_cpus);
176 176

  
177 177
    for (i = 0; i < smp_cpus; i++) {
178 178
        CPUState *tmp_env;
......
211 211

  
212 212
        bios_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
213 213
        bios_size = load_image(bios_filename, qemu_get_ram_ptr(ZIPL_LOAD_ADDR));
214
        qemu_free(bios_filename);
214
        g_free(bios_filename);
215 215

  
216 216
        if ((long)bios_size < 0) {
217 217
            hw_error("could not load bootloader '%s'\n", bios_name);
......
247 247
        DeviceState *dev;
248 248

  
249 249
        if (!nd->model) {
250
            nd->model = qemu_strdup("virtio");
250
            nd->model = g_strdup("virtio");
251 251
        }
252 252

  
253 253
        if (strcmp(nd->model, "virtio")) {

Also available in: Unified diff