mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue