diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c index 1fcd72448f3..2fecd9d08cd 100644 --- a/sys/compat/ndis/subr_ndis.c +++ b/sys/compat/ndis/subr_ndis.c @@ -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; }