From 3adb7ca4b2659ab188958d498078e5520387ca55 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Sep 2021 10:03:27 +1000 Subject: [PATCH] [client] wayland: fix possible memory leak --- client/displayservers/Wayland/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/displayservers/Wayland/output.c b/client/displayservers/Wayland/output.c index 9866b343..3ef06984 100644 --- a/client/displayservers/Wayland/output.c +++ b/client/displayservers/Wayland/output.c @@ -162,6 +162,7 @@ void waylandOutputBind(uint32_t name, uint32_t version) if (version < 2) { DEBUG_WARN("wl_output version too old: expected >= 2, got %d", version); + free(node); return; } @@ -217,4 +218,3 @@ wl_fixed_t waylandOutputGetScale(struct wl_output * output) return node->scale; return 0; } -