In the Linux kernel, the following vulnerability has been resolved:
iio: core: fix memleak in iiodeviceregister_sysfs
When iiodeviceregistersysfsgroup() fails, we should free iiodevopaque->chanattrgroup.attrs to prevent potential memleak.