mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Fixed memory leak in test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user