[mutter/wip/carlosg/coverity-fixes: 10/12] wayland: Plug leak in error condition
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/coverity-fixes: 10/12] wayland: Plug leak in error condition
- Date: Mon, 25 Oct 2021 13:45:58 +0000 (UTC)
commit e176818f2ffeffd262f329e0a1b7959766b6ac29
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 24 23:57:55 2021 +0200
wayland: Plug leak in error condition
If we fail to bind the X11 socket, free the lock file string.
CID: #1505865
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 596c8209fe..ff5150d014 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]