From 1ae2d976c0798d5aaaaced277e931e7e18187536 Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Thu, 4 Jun 2020 16:23:51 +0200 Subject: xwayland: free server in error path --- xwayland/xwayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index ccec7c67..4cb103af 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -89,7 +89,7 @@ struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display, }; xwayland->server = wlr_xwayland_server_create(wl_display, &options); if (xwayland->server == NULL) { - free(xwayland->server); + free(xwayland); return NULL; } -- cgit v1.2.3