mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
nvme_da: Fix minor memory leak in error case
Reported by: cppcheck Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
5c4ac7c2af
commit
2e1fccf2cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330717
@ -695,6 +695,7 @@ ndaregister(struct cam_periph *periph, void *arg)
|
||||
if (cam_iosched_init(&softc->cam_iosched, periph) != 0) {
|
||||
printf("ndaregister: Unable to probe new device. "
|
||||
"Unable to allocate iosched memory\n");
|
||||
free(softc, M_DEVBUF);
|
||||
return(CAM_REQ_CMP_ERR);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user