diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index f4d1d8174f681e3b7f39f918991326e3eb48fd0b..f08806348b06af5e006e30d593b768c8dc022040 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -643,6 +643,7 @@ static int ata_scsiop_inquiry(ccb *pccb) if (ahci_device_data_io(port, (u8 *) &fis, sizeof(fis), tmpid, sizeof(hd_driveid_t), 0)) { debug("scsi_ahci: SCSI inquiry command failure.\n"); + free(tmpid); return -EIO; }