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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208800
@ -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…
Reference in New Issue
Block a user