From: Armin Novak Date: Thu, 3 Oct 2019 14:15:52 +0000 (+0200) Subject: Fixed use after free. X-Git-Tag: 2.0.0~314^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69dbd45d4e5a5cbe2a90c41d736917fa4752e357;p=platform%2Fupstream%2Ffreerdp.git Fixed use after free. --- diff --git a/client/X11/cli/xfreerdp.c b/client/X11/cli/xfreerdp.c index a202a46..3492f43 100644 --- a/client/X11/cli/xfreerdp.c +++ b/client/X11/cli/xfreerdp.c @@ -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; }