Add missing free(9) in error case.
Found with: Coverity Prevent(tm) CID: 4224
This commit is contained in:
parent
0c70e3070b
commit
9b61a5b95e
@ -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…
x
Reference in New Issue
Block a user