Fix memory leak in an error case.

Found with:	Coverity Prevent(tm)
CID:		371
MFC after:	2 weeks
This commit is contained in:
Christian Brueffer 2009-05-13 08:50:13 +00:00
parent 07a7b85e94
commit c3c1eab368
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192036

View File

@ -531,7 +531,10 @@ windrv_bus_attach(drv, name)
RtlInitAnsiString(&as, name);
if (RtlAnsiStringToUnicodeString(&drv->dro_drivername, &as, TRUE))
{
free(new, M_DEVBUF);
return(ENOMEM);
}
/*
* Set up a fake image pointer to avoid false matches