From ccaa4c049bfc0e9957ae2afae21ce2e7c8f4fa93 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 24 Oct 2021 23:57:55 +0200 Subject: [PATCH] wayland: Plug leak in error condition If we fail to bind the X11 socket, free the lock file string. CID: #1505865 Part-of: --- src/wayland/meta-xwayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 596c8209f..ff5150d01 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -777,6 +777,7 @@ choose_xdisplay (MetaXWaylandManager *manager, { g_prefix_error (&local_error, "Failed to bind X11 socket: "); g_propagate_error (error, g_steal_pointer (&local_error)); + g_free (lock_file); return FALSE; }