Commit 8c4a4dff authored by Ferenc Wagner's avatar Ferenc Wagner Committed by Alexandre Julliard

Add a free() call at the end.

parent 455a2239
...@@ -258,8 +258,8 @@ EnumTestFileProc (HMODULE hModule, LPCTSTR lpszType, ...@@ -258,8 +258,8 @@ EnumTestFileProc (HMODULE hModule, LPCTSTR lpszType,
return TRUE; return TRUE;
} }
static const char * char *
run_tests (const char *logname, const char *tag) run_tests (char *logname, const char *tag)
{ {
int nr_of_files = 0, nr_of_tests = 0, i; int nr_of_files = 0, nr_of_tests = 0, i;
char *tempdir; char *tempdir;
...@@ -357,9 +357,9 @@ Usage: winetest [OPTION]...\n\n\ ...@@ -357,9 +357,9 @@ Usage: winetest [OPTION]...\n\n\
int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
LPSTR cmdLine, int cmdShow) LPSTR cmdLine, int cmdShow)
{ {
const char *logname = NULL; char *logname = NULL;
char *tag = NULL, *cp; char *tag = NULL, *cp;
char *submit = NULL; const char *submit = NULL;
cmdLine = strtok (cmdLine, " "); cmdLine = strtok (cmdLine, " ");
while (cmdLine) { while (cmdLine) {
...@@ -417,6 +417,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, ...@@ -417,6 +417,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
report (R_FATAL, "Can't submit logfile '%s'", logname); report (R_FATAL, "Can't submit logfile '%s'", logname);
if (remove (logname)) if (remove (logname))
report (R_WARNING, "Can't remove logfile: %d.", errno); report (R_WARNING, "Can't remove logfile: %d.", errno);
free (logname);
report (R_STATUS, "Finished"); report (R_STATUS, "Finished");
} }
exit (0); exit (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment