From 7516dddeb3a3cacf8e572f26d08ebfa0a8ec0d7c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 18 Jun 2025 12:16:46 +1000 Subject: [PATCH] util: fix a memleak for the dwtp string Was assigned to dwt and any device with both dwt and dwtp would leak that string. Part-of: --- src/util-libinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-libinput.c b/src/util-libinput.c index 8142dcf6..b0ee0730 100644 --- a/src/util-libinput.c +++ b/src/util-libinput.c @@ -210,8 +210,8 @@ print_device_options(struct libinput_device *dev) } if (libinput_device_config_dwtp_is_available(dev)) { - dwt = strdup_printf(" dwtp-%s", - onoff(libinput_device_config_dwtp_get_enabled(dev) == LIBINPUT_CONFIG_DWTP_ENABLED)); + dwtp = strdup_printf(" dwtp-%s", + onoff(libinput_device_config_dwtp_get_enabled(dev) == LIBINPUT_CONFIG_DWTP_ENABLED)); } if (libinput_device_has_capability(dev,