From 978e578e7a41e2dbec99c6e48371a26a664da5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 10 Aug 2023 19:04:09 +0800 Subject: [PATCH] Display (Linux): fix memleaks --- src/detection/displayserver/linux/wayland.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detection/displayserver/linux/wayland.c b/src/detection/displayserver/linux/wayland.c index 9f259a104..e0a4cd2de 100644 --- a/src/detection/displayserver/linux/wayland.c +++ b/src/detection/displayserver/linux/wayland.c @@ -207,6 +207,10 @@ static void waylandOutputHandler(WaylandData* wldata, struct wl_registry* regist 0 ); + ffStrbufDestroy(&display.description); + ffStrbufDestroy(&display.vendorAndModelId); + ffStrbufDestroy(&display.name); + ffThreadMutexUnlock(&mutex); }