From c8861d2a2fd9ef875501a05b8c894045ce96ecc6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 12 Nov 2015 10:02:38 +1000 Subject: Plug two memory leaks Signed-off-by: Peter Hutterer --- src/xf86libinput.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 3ca7514..95e2d20 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -1122,6 +1122,8 @@ xf86libinput_parse_accel_profile_option(InputInfoPtr pInfo, profile = libinput_device_config_accel_get_profile(device); } + free(str); + return profile; } @@ -1586,6 +1588,7 @@ xf86libinput_uninit(InputDriverPtr drv, if (driver_data) { driver_context.libinput = libinput_unref(driver_context.libinput); valuator_mask_free(&driver_data->valuators); + valuator_mask_free(&driver_data->valuators_unaccelerated); free(driver_data->path); free(driver_data); pInfo->private = NULL; -- cgit v1.2.3