From 64fce8717fd406004b6cf6d3b57606c794fcbc59 Mon Sep 17 00:00:00 2001 From: weizhenwei Date: Tue, 13 Jun 2017 16:46:37 +0800 Subject: [PATCH] fix memroy leak of fd at FindFirstFileW() --- winpr/libwinpr/file/generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/winpr/libwinpr/file/generic.c b/winpr/libwinpr/file/generic.c index 918d8a8e1..51daafe3d 100644 --- a/winpr/libwinpr/file/generic.c +++ b/winpr/libwinpr/file/generic.c @@ -938,6 +938,7 @@ HANDLE FindFirstFileW(LPCWSTR lpFileName, LPWIN32_FIND_DATAW lpFindFileData) } } + free(fd); return h; }