diff options
author | trasz <trasz@FreeBSD.org> | 2009-05-12 15:14:37 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-05-12 15:14:37 +0000 |
commit | 7df3cb50cfc890ed427a84931455f06d3391b1fb (patch) | |
tree | f69f27c9253c1598da3400d58d91534b3b3f270c /sys/cam | |
parent | 199a90a8fef195dfd818dc8b58ef084e3284c05f (diff) | |
download | FreeBSD-src-7df3cb50cfc890ed427a84931455f06d3391b1fb.zip FreeBSD-src-7df3cb50cfc890ed427a84931455f06d3391b1fb.tar.gz |
Add missing free(9) in error case.
Found with: Coverity Prevent(tm)
CID: 4224
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_periph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 368d409..31bb24c 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -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); } |