Skip to content

Commit

Permalink
add missing call to FreeLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier committed Feb 11, 2021
1 parent a702815 commit 1295ecc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,10 @@ bool GetVersionInfo(PCWSTR pszFileName, LPWSTR strVersion, ULONG nBufSizeInChars
cbVerInfo = pGetFileVersionInfoSizeW(pszFileName, &dummy);

if (!cbVerInfo)
{
FreeLibrary(hVLib);
return false;
}

PBYTE pVerInfo = new BYTE[cbVerInfo];

Expand Down

0 comments on commit 1295ecc

Please sign in to comment.