diff options
author | Chris Robinson <[email protected]> | 2017-08-30 17:08:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-30 17:08:38 -0700 |
commit | 226efffd21d39948dc53bc4fb0bf81dfdeb085aa (patch) | |
tree | 29c160618af7642776f3c4a1ee1e409c7e7c9217 /common | |
parent | 88d76bf0692b17aa9350095f472e3d8ce5e86e32 (diff) |
Free the args returned by CommandLineToArgvW
Diffstat (limited to 'common')
-rw-r--r-- | common/win_main_utf8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/win_main_utf8.h b/common/win_main_utf8.h index 1299e49e..a95914bb 100644 --- a/common/win_main_utf8.h +++ b/common/win_main_utf8.h @@ -76,6 +76,8 @@ static void GetUnicodeArgs(int *argc, char ***argv) } WideCharToMultiByte(CP_UTF8, 0, args[i], -1, (*argv)[i], -1, NULL, NULL); *argc = nargs; + + LocalFree(args); } #define GET_UNICODE_ARGS(argc, argv) GetUnicodeArgs(argc, argv) |