Fix resource leak found by Coverity (via Sam Leffler).

This commit is contained in:
Bill Paul 2005-03-28 20:16:26 +00:00
parent c0c6e20248
commit 59abc1c4f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144251

View File

@ -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;
}