fix memroy leak of fd at FindFirstFileW()
authorweizhenwei <weizhenwei1988@gmail.com>
Tue, 13 Jun 2017 08:46:37 +0000 (16:46 +0800)
committerweizhenwei <weizhenwei1988@gmail.com>
Wed, 21 Jun 2017 07:26:28 +0000 (15:26 +0800)
winpr/libwinpr/file/generic.c

index 918d8a8..51daafe 100644 (file)
@@ -938,6 +938,7 @@ HANDLE FindFirstFileW(LPCWSTR lpFileName, LPWIN32_FIND_DATAW lpFindFileData)
                }
        }
 
+       free(fd);
        return h;
 }