Revision 7267c094 hw/scsi-bus.c
b/hw/scsi-bus.c | ||
---|---|---|
346 | 346 |
{ |
347 | 347 |
SCSIRequest *req; |
348 | 348 |
|
349 |
req = qemu_mallocz(reqops->size);
|
|
349 |
req = g_malloc0(reqops->size);
|
|
350 | 350 |
req->refcount = 1; |
351 | 351 |
req->bus = scsi_bus_from_device(d); |
352 | 352 |
req->dev = d; |
... | ... | |
1015 | 1015 |
if (req->ops->free_req) { |
1016 | 1016 |
req->ops->free_req(req); |
1017 | 1017 |
} |
1018 |
qemu_free(req);
|
|
1018 |
g_free(req);
|
|
1019 | 1019 |
} |
1020 | 1020 |
} |
1021 | 1021 |
|
Also available in: Unified diff