forked from drath/libratbag
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 <qiuwenbo@phytium.com.cn>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user