From e3c916e6807bc7e8277d8269a60c0256a36b62f7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe DUBOIS Date: Sun, 15 Nov 2009 19:18:18 +0100 Subject: Fix qemu_free use in scsi-generic.c scsi-generic.c is using free() instead of qemu_free(). Fix it. Signed-off-by: Jean-Christophe DUBOIS Signed-off-by: Anthony Liguori --- hw/scsi-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/scsi-generic.c') diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 92ef7716b7..cf56ea0f2c 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -561,7 +561,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, if (len == 0) { if (r->buf != NULL) - free(r->buf); + qemu_free(r->buf); r->buflen = 0; r->buf = NULL; ret = execute_command(s->dinfo->bdrv, r, SG_DXFER_NONE, scsi_command_complete); @@ -574,7 +574,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, if (r->buflen != len) { if (r->buf != NULL) - free(r->buf); + qemu_free(r->buf); r->buf = qemu_malloc(len); r->buflen = len; } -- cgit v1.2.3