1
0
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:
Qiu Wenbo
2019-12-12 08:42:11 +08:00
committed by Filipe Laíns
parent 32ebbca42f
commit 71b1d66287

View File

@@ -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)