plug resource leak

Noticed by:	Coverity Prevent analysis tool
Reviewed by:	scottl
This commit is contained in:
Sam Leffler 2005-02-24 02:24:24 +00:00
parent 7e53be277f
commit 183551b925
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142358

View File

@ -2025,6 +2025,7 @@ hpt_attach(device_t dev)
*/
if((devq = cam_simq_alloc(8/*MAX_QUEUE_COMM*/)) == NULL) {
KdPrint(("ENXIO\n"));
free(ccb, M_DEVBUF);
return ENOMEM;
}