mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Memory leak in system.c
> Here I get a memory leak > https://github.com/ddnet/ddnet/blob/master/src/base/system.c#L167 Thanks to @kurosio
This commit is contained in:
parent
7d3fdec98a
commit
a780dd691d
|
@ -188,6 +188,7 @@ static void logger_stdout_sync(const char *line, void *user)
|
||||||
console = GetStdHandle(STD_OUTPUT_HANDLE);
|
console = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
WriteConsoleW(console, wide, wlen, NULL, NULL);
|
WriteConsoleW(console, wide, wlen, NULL, NULL);
|
||||||
WriteConsoleA(console, "\n", 1, NULL, NULL);
|
WriteConsoleA(console, "\n", 1, NULL, NULL);
|
||||||
|
free(wide);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue