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:
Vlad 2021-03-01 01:07:34 +03:00 committed by def
parent 7d3fdec98a
commit a780dd691d

View file

@ -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