mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Fixed use after free.
This commit is contained in:
@@ -61,11 +61,12 @@ int main(int argc, char* argv[])
|
||||
|
||||
if (status)
|
||||
{
|
||||
if (settings->ListMonitors)
|
||||
BOOL list = settings->ListMonitors;
|
||||
if (list)
|
||||
xf_list_monitors(xfc);
|
||||
|
||||
freerdp_client_context_free(context);
|
||||
if (settings->ListMonitors)
|
||||
if (list)
|
||||
return 0;
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user