Fix resource leak found by Coverity (via Sam Leffler).
This commit is contained in:
parent
c0c6e20248
commit
59abc1c4f3
@ -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 New Issue
Block a user