Fix memory leak in an error case.
Found with: Coverity Prevent(tm) CID: 371 MFC after: 2 weeks
This commit is contained in:
parent
07a7b85e94
commit
c3c1eab368
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192036
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user