From 59abc1c4f3b059e6f5da719ccdf803544af80e2f Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Mon, 28 Mar 2005 20:16:26 +0000 Subject: [PATCH] Fix resource leak found by Coverity (via Sam Leffler). --- sys/compat/ndis/subr_ndis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c index 1fcd72448f31..2fecd9d08cd0 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; }