Revision 7267c094 hw/smbus_eeprom.c

b/hw/smbus_eeprom.c
130 130
                       const uint8_t *eeprom_spd, int eeprom_spd_size)
131 131
{
132 132
    int i;
133
    uint8_t *eeprom_buf = qemu_mallocz(8 * 256); /* XXX: make this persistent */
133
    uint8_t *eeprom_buf = g_malloc0(8 * 256); /* XXX: make this persistent */
134 134
    if (eeprom_spd_size > 0) {
135 135
        memcpy(eeprom_buf, eeprom_spd, eeprom_spd_size);
136 136
    }

Also available in: Unified diff