mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7302 from Robyt3/Cmdline-Fix-Leak
Fix leak of command line arguments on Windows
This commit is contained in:
commit
655902cf7f
|
@ -4039,6 +4039,7 @@ void cmdline_fix(int *argc, const char ***argv)
|
|||
new_argv[i + 1] = new_argv[i] + size;
|
||||
}
|
||||
|
||||
LocalFree(wide_argv);
|
||||
new_argv[wide_argc] = 0;
|
||||
*argc = wide_argc;
|
||||
*argv = (const char **)new_argv;
|
||||
|
|
Loading…
Reference in a new issue