Add missing free(9) in error case.
Found with: Coverity Prevent(tm) CID: 4224
This commit is contained in:
parent
0c70e3070b
commit
9b61a5b95e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192016
@ -173,6 +173,7 @@ cam_periph_alloc(periph_ctor_t *periph_ctor,
|
||||
xpt_unlock_buses();
|
||||
if (*p_drv == NULL) {
|
||||
printf("cam_periph_alloc: invalid periph name '%s'\n", name);
|
||||
free(periph, M_CAMPERIPH);
|
||||
return (CAM_REQ_INVALID);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user