From 71b1d66287cc8eb48d54b8b649aa3983e96a22f9 Mon Sep 17 00:00:00 2001 From: Qiu Wenbo Date: Thu, 12 Dec 2019 08:42:11 +0800 Subject: [PATCH] hidpp20: fix a double free error of hidpp20 These are two fields of a union and should have the same value. What the code doing here is trying to free a pointer twice. Signed-off-by: Qiu Wenbo --- src/driver-hidpp20.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/driver-hidpp20.c b/src/driver-hidpp20.c index 8c9bf2a7..5d04c5cb 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -1509,7 +1509,6 @@ hidpp20drv_remove(struct ratbag_device *device) if (drv_data->profiles) hidpp20_onboard_profiles_destroy(drv_data->profiles); free(drv_data->led_infos.color_leds_8070); - free(drv_data->led_infos.color_leds_8071); free(drv_data->controls); free(drv_data->sensors); if (drv_data->dev)