Revision 7267c094 hw/bt-hid.c
b/hw/bt-hid.c | ||
---|---|---|
504 | 504 |
|
505 | 505 |
hid_free(&hid->hid); |
506 | 506 |
|
507 |
qemu_free(hid);
|
|
507 |
g_free(hid);
|
|
508 | 508 |
} |
509 | 509 |
|
510 | 510 |
enum peripheral_minor_class { |
... | ... | |
517 | 517 |
static struct bt_device_s *bt_hid_init(struct bt_scatternet_s *net, |
518 | 518 |
enum peripheral_minor_class minor) |
519 | 519 |
{ |
520 |
struct bt_hid_device_s *s = qemu_mallocz(sizeof(*s));
|
|
520 |
struct bt_hid_device_s *s = g_malloc0(sizeof(*s));
|
|
521 | 521 |
uint32_t class = |
522 | 522 |
/* Format type */ |
523 | 523 |
(0 << 0) | |
Also available in: Unified diff