Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit aad4545

Browse files
MikeHolmanchakrabot
authored andcommitted
deps: update ChakraCore to chakra-core/ChakraCore@11715eefd5
[1.8>1.9] [MERGE #4557 @MikeHolman] use LocalFree for freeing JIT failure message Merge pull request #4557 from MikeHolman:localfreeerror Per [MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx) >The caller should use the LocalFree function to free the buffer when it is no longer needed. Reviewed-By: chakrabot <[email protected]>
1 parent eac5992 commit aad4545

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deps/chakrashim/core/lib/JITClient/JITManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ JITManager::CreateBinding(
151151
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
152152
NULL, errorNumber, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPWSTR)&messageBuffer, 0, NULL);
153153
Output::Print(_u("Last error was 0x%x (%s)"), errorNumber, messageBuffer);
154-
free(messageBuffer);
154+
LocalFree(messageBuffer);
155155
#endif
156156
// wait operation failed for an unknown reason.
157157
Assert(false);

0 commit comments

Comments
 (0)