scsi_cd: pass correct pointer to free()
Found with: Coverity Prevent(tm) CID: 2986 MFC after: 4 days
This commit is contained in:
parent
22fdc015e2
commit
1a7b0de575
@ -2528,7 +2528,7 @@ cdioctl(struct disk *dp, u_long cmd, void *addr, int flag, struct thread *td)
|
||||
|
||||
error = cdgetmode(periph, ¶ms, AUDIO_PAGE);
|
||||
if (error) {
|
||||
free(¶ms.mode_buf, M_SCSICD);
|
||||
free(params.mode_buf, M_SCSICD);
|
||||
cam_periph_unlock(periph);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user