mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
Fix resource leak found by Coverity (via Sam Leffler).
This commit is contained in:
parent
c0c6e20248
commit
59abc1c4f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144251
|
@ -2759,6 +2759,7 @@ NdisOpenFile(status, filehandle, filelength, filename, highestaddr)
|
|||
|
||||
path = ExAllocatePoolWithTag(NonPagedPool, MAXPATHLEN, 0);
|
||||
if (path == NULL) {
|
||||
free(fh, M_TEMP);
|
||||
*status = NDIS_STATUS_RESOURCES;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue