Free the args returned by CommandLineToArgvW

This commit is contained in:
Chris Robinson
2017-08-30 17:08:38 -07:00
parent 88d76bf069
commit 226efffd21
+2
View File
@@ -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)