mirror of https://github.com/FreeRDP/FreeRDP
Fixed memory leak in test
This commit is contained in:
parent
1d21585fa4
commit
55b7fc50e0
|
@ -180,6 +180,8 @@ static int testSuccess(int port)
|
|||
|
||||
path = GetCombinedPath(exe, "Sample");
|
||||
wpath = GetCombinedPath(wexe, "Sample");
|
||||
free(exe);
|
||||
exe = NULL;
|
||||
|
||||
if (!path || !wpath)
|
||||
goto fail;
|
||||
|
@ -226,6 +228,7 @@ static int testSuccess(int port)
|
|||
|
||||
fail:
|
||||
free(exe);
|
||||
free(wexe);
|
||||
free(path);
|
||||
free(wpath);
|
||||
free(commandLine);
|
||||
|
|
Loading…
Reference in New Issue