Revision 7267c094 hw/ppc4xx_pci.c
b/hw/ppc4xx_pci.c | ||
---|---|---|
341 | 341 |
static int ppc4xx_pci_id; |
342 | 342 |
uint8_t *pci_conf; |
343 | 343 |
|
344 |
controller = qemu_mallocz(sizeof(PPC4xxPCIState));
|
|
344 |
controller = g_malloc0(sizeof(PPC4xxPCIState));
|
|
345 | 345 |
|
346 | 346 |
controller->pci_state.bus = pci_register_bus(NULL, "pci", |
347 | 347 |
ppc4xx_pci_set_irq, |
... | ... | |
390 | 390 |
|
391 | 391 |
free: |
392 | 392 |
printf("%s error\n", __func__); |
393 |
qemu_free(controller);
|
|
393 |
g_free(controller);
|
|
394 | 394 |
return NULL; |
395 | 395 |
} |
Also available in: Unified diff